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

Re: script to mv file & ...

On Thu, 19 Dec 2002, Garry Byrne wrote:

> Hi all,  Could anyone assist with a simple script to mv 'filename.tar.gz'
> to 'filename-currentdate.tar.gz'  So the script would be able to insert the
> current date into the new file name.

mv filename.tar.gz filename-`date +%Y-%m-%d`.tar.gz

Reply to: