我使用的zsh作爲我的默認外殼 當我做一個簡單的ack命令狀 $ ack a_string
不插入匹配的行之間的換行符。因此,他們都得到錯雜像 a_string is on this linethis is another line a_string is onand a third a_string line
猛砸正確顯示結果: a_string is on this line
thi
我有一個bash腳本,我已經寫出來確定某個字符串是否存在於某個文件中,然後將文件名輸出到「noString.txt」的「noString.txt 」。我正在使用ack -i 'mystring' 'searchDir'來查找我要找的內容。 奇怪的是,當我手動調用腳本通過終端它完美,而是當的cron調用腳本我得到以下錯誤消息輸出: ~/sourceDir/script.sh: line 30: ac