菜单
定时任务中时间日期格式需要转义

在 crontab 中的时间或日期格式的写法需要转义

* * * * * echo $(date +"\%Y-\%m-\%d \%H:\%M:\%S" -d "-1day") >> ~/test.log

可根据自己需要灵活修改格式

记录下省的到处搜索