I'm trying to append the current date to the end of a file name like this:
TheFile.log.2012-02-11
Here is what I have so far:
set today = 'date +%Y'
mkdir -p The_Logs &
find . -name The_Logs -atime -1 -type d -exec mv \{} "The_Logs_+$today" \; &
However all I get is the name of the file, and it appends nothing. How do I append a current date to a filename?