#!/bin/sh # # This script counts to 5 slowly, printing out # a message once per second. Shows an example of using # a while command, and the sleep command. counter=0 while [ $counter -ne 5 ] do echo The elapsed time is $counter seconds; sleep 1 counter=`expr $counter + 1` done