0
我的清理腳本記錄了我刪除的內容。清理腳本錯誤 - BASH
log=$HOME/Deleted/$(date)
find $HOME/OldLogFiles/ -type f -mtime -7 -exec ls -latr {} \; -exec echo was deleted on `date` \; -exec rm -f "{}" \;|paste - - >> $log
我一直但是遇到這些錯誤......
./test.sh: line 3: $log: ambiguous redirect
find: ‘ls’ terminated by signal 13
find: ‘ls’ terminated by signal 13
任何人有什麼建議?
你有沒有試過'-exec ls -latr「{}」'? – ctn
我得到了同樣的錯誤。 – mkrouse