tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ remove whitespace and comments

SED PROBLEM ▻

Using date as a file name

In article <87sha4$g82$1@news.fsu.edu>,
Giselle Valenzuela <ggv7885@garnet.acns.fsu.edu> wrote:
>and then filename gets copied to Feb-1-2000.txt
>or something to that effect.

I'd strongly recommend you use ISO 8601 format dates: 2000-02-01 in
this case.  A suitable date format string is `+%Y-%m-%d'.

For further 8601 advocacy, see this web page.

    http://www.cl.cam.ac.uk/~mgk25/iso-time.html

Tim.
--
Tim Goodwin   | "If you don't know what closures are, you probably don't
Leicester, UK | want to know what closures are." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: Using date as a file name
Date: 10 Feb 2000 13:29:25 -0000
Message-ID: <87uegb$9gu$1@ltpcg.star.le.ac.uk>
References: <87sha4$g82$1@news.fsu.edu>

△ comp.unix.shell △

◅ remove whitespace and comments

SED PROBLEM ▻