Execute Date Format in Cron

tech · Mar 26, 2021 · ~1 min

Escaping % in crontab using \%

example

1
2
3
0 0 * * 5 cat ~/log >> \
~/log-`date +"\%Y-\%m-\%d"` && \
> ~/log

Thank you for reading!

· · ·

Love This Content?

Kindly support me via Bitcoin, Ko-fi, Trakteer, or just continue to read another content. Any kind of supports is greatly appreciated!