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

Re: How do I do this in bash ??



Hi,

* Dave Selby <dave_arahan@yahoo.co.uk> [2003-01-19 11:48]:
>I know 'date' gives me exactly what I want but I cant figure out how to get 
>tar to write a file with the value of date as its file name ...

Basically,
    tar czf myFiles.`date`.tar.gz myfiles
though that gets you whitespaces in the file name. You should use
date(1) with a format string, have a look in date's manpage.


Thorsten
-- 
Intolerant people should be shot.

Attachment: pgpMaAuGtlEGH.pgp
Description: PGP signature


Reply to: