[lug] Creating date variables in bash
Matt Thompson
thompsma at colorado.edu
Tue Oct 12 13:51:40 MDT 2004
On Tue, 2004-10-12 at 13:50, Matt Thompson wrote:
> 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:
>
> http://www.gnu.org/software/coreutils/manual/html_chapter/coreutils_27.html#SEC168
>
> I'm still trying to figure out uses for "this". Probably something in
> logging...
Sorry, I meant "this hour" or "this minute". It accepts them, but
doesn't change anything.
--
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/352b147a/attachment.pgp>
More information about the LUG
mailing list