#!/bin/sh pg=0 for i; do if [ $pg -lt $i ]; then pg=$i fi done if [ $pg -eq 0 ];then echo "Pb, le plus grand est null" >&2 exit 1 fi echo "$pg"