#!/bin/sh # # a demonstation of use of while in the Bourne shell # cavram, 29/8/2000 # # set the counter to the number of repeats required # count=3 # # for each repeat, do it # while count is greater than 0 do ... done # while [ $count -gt 0 ] do echo "$count" count=`expr $count - 1 ` done # # ends the while #