how can I allow for leading zero for days 1-9 in below example:
n=32 let i=1 while [ $i -lt $n ]; do
*snip stuff*
Replace the while loop with a for loop using seq(1) to generate the sequence. Use the -w option to pad:
for $i in `seq -w 1 32`; do *re-add stuff*
-- Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
