LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Nick Morrison <nickm@bhwb.nsw.gov.au>
  To  : Nick Stock" <nstock@netstarnetworks.com>, <nstock@netstarnetworks.com>
  Date: Mon, 21 Feb 2000 11:39:58 +1030

RE: Date stamp

Try `date +%Y%m%d`

So something like

   touch `date +%Y%m%d`

might work for you.

Do "man date" for more info.

I sincerely hope this helps.
__
Other Nick.
nickm@bhwb.nsw.gov.au

> Hi all,
>
> I am trying to use a shell script (via cron) to create a backup file
> every day and I would like the filename to contain the date.
>
> Something along the lines of... backup-000221.tgz
>
> How can I go about this?
> Does anyone know of any good examples on how to do this.
> My shell programming experience is limited.
>
> Thanks,
>
> Nick
> RJ-45 of all trades.
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
>   mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page