Scripting question

Ainsley Pereira marble at linuxfromscratch.org
Wed Nov 6 11:21:31 PST 2002


In message <20021106190851.GA623 at comcast.net>
          Archaic <archaic at comcast.net> wittered:

> I needed to create a file with everyday of the year in mmddyy form.
> After searching some bash tutorials on the web I couldn't find an elegant
> way to construct the for loop, so I did the brute force method. Any
> suggestions? Here's my script (effective, but horrendous). 

You could start by using seq for the days. (for d in $(seq 1 30); etc...)

~a.

-- 
 ----------------------------------------------------------
  / Ainsley 'Marble' Pereira / http://www.snowplains.org /
 / Don't drink and drive.
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list