just include `date -I` as part of the file creation routine

ie something like:

tar cfz file.`date -I`.tgz /home

regards
brett

Kevin Saenz wrote:
Hi all,

I have a bash script where I create a tar.gz file I would grab current date and add it to the file name. Could anyone
please advise where I could look so I can develop my script
further?



-- Brett Fenton General Manager NetRegistry Pty Ltd _______________________________________________

http://www.netregistry.com.au/

Tel: +61 2 96996099  |  Fax: +61 2 96996088
PO Box 270 Broadway  |  NSW 2007, Australia

Your Total Internet Business Services Provider
Trusted by 10,000s of Oz Businesses Since 1997



This email is from NetRegistry Pty Ltd. The contents of this message are commercial and in confidence to the intended addresseee.

The message may contain copyrighted and/or legally priviledged information. No person or entity other than the intended recipient may read, print or store this message, including any and all attached files.

The intended recipient may not forward this message to any third party without express written permission from NetRegistry Pty Ltd.


--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to