I've got a program that adds to a log file while it's running. Over time that log file gets huge. I'd like to create a startup script which will rename and move the log file before each run, effectively creating separate log files for each run of the program.
mv server.log logs/$(date -d "today" +"%Y%m%d%H%M").log
There must not be a space between the plus sign and the double quotes.