Scripting question

Joern Abatz mail at abatz.de
Fri Nov 8 03:07:45 PST 2002


On 2002.11.06 20:08 Archaic wrote:

> I needed to create a file with everyday of the year in mmddyy form.
>...
> Any suggestions?

All in one line:

N=0 ; while [ $N -lt 365 ] ; do date -d'1 jan 2002 +'$N'days' +'%m%d%y'
; N=$((N+1)) ; done > newfile ; unset N

Joern
-- 
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