
為什麼我會收到此錯誤
/bin/sh: 1: Syntax error: Unterminated quoted string
什麼時候呼叫這個/etc/crontab
?
19 2 * * * root for f in $(cat /home/rubo77/list); do date +"%y-%m-%d %T">"$f".datefile; done
該清單僅包含現有目錄的路徑,這些是我的 crontab 中的第一行:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
當我for
在 bash 控制台上呼叫命令列時,沒有收到任何錯誤