Example script: ex4.ksh


   1: #!/bin/ksh
   2: count=0
   3: max=10
   4: while [[ $count -lt $max ]]
   5: do 
   6:   echo $count
   7:   count=$((count + 1))
   8: done
   9: echo "Value of count after loop is: $count"



  last modified 22/03/2012 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College