getting the date in crontab command
getting the date in crontab command – The UNIX and Linux Forums
date +”%Y%m%d” -> date +”\%Y\%m\%d”
man crontab
The sixth field of a line in a crontab file is a string that is executed by the shell at the specified times. A percent character in this field (unless escaped by \) is translated to a NEWLINE character.
Leave a comment
