DEV Community

Clavin June
Clavin June

Posted on • Originally published at clavinjune.dev on

1 2

Execute Date Format In Cron

Escaping % in crontab using \%

example

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

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs