- 论坛徽章:
- 0
|
大神们,shell新手求教,我服务器上的crontab有如下内容,现在我想批量去除脚本之前的全部内容,生成新的文件。
新文件格式如下,请问该如何通过shell实现,谢谢。
/script/ch.sh
/home/sitemap.sh
*/5 * * * * /script/ch.sh
0 7 * * * /home/sitemap.sh
0 10 * * * /home/mobilesitemap.sh
*/1 * * * * /script/moniter/monitor.sh
00 01 * * * /script/rsync/199topreset.sh
00 3 * * * /script/deletecachefiles.sh
*/10 * * * * /script/runmq.sh
*/1 * * * * /script/webloadrestart.sh
55 23 * * * /bin/bash /script/languagebackup.sh
00 23 * * * /bin/bash /script/appbackup.sh
00 17 * * * /bin/bash /script/rsync/rsyncdry.sh
*/1 * * * * /script/memmonitor.sh
*/1 * * * * /script/rsyncmonitor.sh
00 09 * * * /bin/bash /script/lastdaysesion.sh
15 00 * * * /script/goaccess.sh
*/10 * * * * /script/rsync/langtrans.sh
04 18 * * * /bin/bash /script/lastmin.sh
28,59 * * * * /script/newfilter.sh
0,5,15,20,25,30,35 21 * * * /script/temprecord.sh |
|