h Guiana - European Space Port
--
De: Jay Barbee
A: debian-user@lists.debian.org
Objet: Date-stamp in filename for a script
Date: mardi 23 juin 1998 20:35
Microsoft Mail v3.0 IPM.Microsoft Mail.Note
From: Jay Barbee
To: debian-user@lists.debian.org
Subject: Date-stamp in filename for
> "Jay" == Jay Barbee <[EMAIL PROTECTED]> writes:
> TIMESTAMP='date +backup%y%m%d.tar.gz'
> tar czvf $TIMESTAMP
Try reversing the quotes: TIMESTAMP=`date +backup%y%m%d.tar.gz`.
That will do the trick.
Mike
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscr
Excuse my ignorance in shell scripting, but I wanted to create a file that
actualy had a filename that contains the date in the format:
backupYYMMDD.tar.gz
I can do:
date +backup%y%m%d.tar.gz
which give the correct output for the filename. If I assign that to an
environment
variable such as
3 matches
Mail list logo