[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Date-stamp in filename for a script



>>>>> "Jay" == Jay Barbee <sysjyb@adm105.adm.louisville.edu> 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 debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: