First page Back Continue Last page Graphics

for Loop Example (using $@)

declare -i count=0

for x; do

let count+=1

echo Arg $count is $x

done

./test-script apple banana cherry

Arg 1 is apple

Arg 2 is banana

Arg 3 is cherry