On Mon, 2003-11-03 at 16:48, Kevin Saenz wrote: > 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?
You need the date command. Check the manpage to find out how to specify the format. An example script fragment would look like: filename=`date +%Y%m%d` tar zxcf backup-filename.tar.gz /stuff/to/be/backed/up/ Cheers, -- Pete -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug