nix, shell, perl, php, mysql and mac os x tips and tricks

Saturday, November 8, 2003

Count within a "for" loop in shell script

for ((  i = 0 ;  i <= 5;  i++  ))
do
  echo "Welcome $i times"
done

No comments:

Post a Comment