1

Appending current date to filename

view story
linux-howto

http://unix.stackexchange.com – I'm trying to append the current date to the end of a file name, like what we see in logfiles: TheFile.log.2012-02-11 I have been following this example and applied this to both a Unix and Linux machine, but all I get is the name of the file and it appends nothing! Below is the part of the script I'm writing in order to achieve this: set today = 'date +%Y' mkdir -p The_Logs & find . -name The_Logs -atime -1 -type d -exec mv \{} "The_Logs_+$today" \; & (HowTos)