Execute Date Format In Cron

Mar 26, 2021  ·  ~1min read
Notes #cron #date #linux

Escaping % in crontab using \%

example

0 0 * * 5 cat ~/log >> \
~/log-`date +"\%Y-\%m-\%d"` && \
> ~/log
Thank you for reading!