[lug] Creating date variables in bash

Matt Thompson thompsma at colorado.edu
Tue Oct 12 13:50:35 MDT 2004

On Tue, 2004-10-12 at 12:57, Nate Duehr wrote:
> Matt Thompson wrote:
> >Add your format string after it.  One of those useless things I learned
> >a long time ago..."1 week ago" works too.  You start playing around with
> >-d way too much after learning about it.
> >
> >Matt
> >  
> >
> I think I remember it understands the word "fortnight" too.  ;-)

Yeah.  And "this" which has made some scripts nice, like for "cron-ish"
things.  Just say "this friday" or the like.  Here is the GNU coreutils
bits about date:


I'm still trying to figure out uses for "this".  Probably something in

Learning just means you were wrong and they were right. - Aram
   Matt Thompson -- http://ucsub.colorado.edu/~thompsma/
   440 UCB, Boulder, CO  80309-0440
   JILA A510, 303-492-4662
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20041012/b6d50e8e/attachment.pgp>

More information about the LUG mailing list