help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: generate date sequences


From: Andre Poenitz
Subject: Re: generate date sequences
Date: Sun, 30 Oct 2005 20:44:20 +0100

Colin S. Miller <no-spam-thank-you@csmiller.demon.co.uk> wrote:
> for (( a=0 ; $a \< 10 ; a++ )) ;do date -d "5 april 2005 $a days";done
> Tue Apr  5 00:00:00 BST 2005
> [...]

Nice trick, that '$a days' thing.

The preamble could have been a bit shorter, though:

 seq 10 | while read a; do date -d "5 april 2005 $a days"; done

Regards,
Andre'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]