20 Sep
2001
20 Sep
'01
02:05
On Wednesday 19 September 2001 15:49, Linux - User wrote:
Hi guys...
is there any way to make with the Shell a for or any other loop statement to make a loop like this:
01 02 03 .... 10 11 12..
That's because I need the zero before the number when the number is below 10.
thanks
bye
--ed
Ed, Perhaps something like this? It should give you some ideas, at least. N=1 until [ $N -eq 13 ]; do if [ $N -lt 10 ]; then echo 0$N else echo $N fi let N+=1 done Kevin -- Sleep is perhaps the only of life's great pleasures that need not be of short duration.