Scripting question

Jason Gurtz jason at
Thu Nov 7 07:12:21 PST 2002

> >         date +%M%D%Y -d "Jan 01 + $a day" | \

> [...] Nor am I clear what the need for the sed command is
> - simply using the format %m%d%y should be all that's
> required... A little adjustment for leap years has also been added...

My my, how did those capital letter sneak in there?  Hehe, and I was
creating my own problem.   If you put the capital in you'll see what my
confusion was :o

> # Get number of days in year (by checking if Feb29 exists)
> if[ `date +%d -d "Feb 01 + 28 day"` = "29" ]
> then
>     days=366
> else
>     days=365
> fi
> # Iterate days
> for ((a=0; a<$days;a++))

Yes, that's nice to have in there, I guess that's all there is to it




Unsubscribe: send email to listar at
and put 'unsubscribe blfs-support' in the subject header of the message

More information about the blfs-support mailing list