17 Nov
2004
17 Nov
'04
09:47
On Wed, 2004-11-17 at 09:04 +0100, Oliver Leue wrote:
Hello all...
May someone please tell me how it is possible to save the leading 0 in a construct like this:
for (i=001,i<701,i++); do echo name.$i.doc >> doc_index.txt
With this the leading 0 get lost and the entries written as name.1.doc, name.10.doc,name.100.doc a.s.o.
man 1 printf help printf printf "name.%3.3i.doc\n" $i Ralf