![]() |
How to append today's date in a script
Hi all,
I am using a daily script which outputs a file. Test.html for example. How do I append a date to it so that the output will be TodaysDateTest.html for everyday. Thanks very much |
dosomething > `date +%F`_test.html
|
Perfect
Thanks :) |
I tried that, and for some reason it didn't work?
Maybe I did it wrong. I personally like this: Code:
ghost@sshd:~$ time=$(date | cut -b 5-10) |
mparkhurs, did you type it exactly as I had? If so, what was the output?
Spaces in filenames are generally Not a Good Thing, imo. Also, you've left the year off. |
All times are GMT -5. The time now is 08:17 AM. |