crontab命令中使用date

00 07 * * * (cd /da2/xxx/yyy; sh run.sh &> log/`date +"\%Y-\%m-\%d"`.log)

原文地址:https://www.cnblogs.com/min2day/p/13293326.html