RE: Date-stamp in filename for a script

1998-06-23 Thread BARBELET Philippe
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

Re: Date-stamp in filename for a script

1998-06-23 Thread Mike Miller
> "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

Date-stamp in filename for a script

1998-06-23 Thread Jay Barbee
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