Renaming a file to include a datestamp
I'm having a problem renaming a file to include a datestamp.
I have a file named test.tst, and want to rename it to something like 2008.05.09.13:30_test.tst
In searching it seems that
$ mv test.tst "'date +%Y.%M.%d.%H:%m'_test.tst"
is the closest I can come. However, that just renames the file to that eact syntax. I'm sure it's because of the quotation marks, but if i try it without them, my terminal prompt just turns to
Last edited by Travatron; 05-11-2008 at 08:42 PM.