#!/bin/sh i=9 while test $i -gt 4 do echo $i -- $i i=`expr $i - 1` done ----------------------------------- $ source test_do.sh 9 -- 9 8 -- 8 7 -- 7 6 -- 6 5 -- 5