27 May 2008

Using dates on your filenames

A nice way to use the output of the date command to name your filenames:

cp test.sh tesh.sh.$(date +%Y%m%d-%H%M%S)

now it should be ok!