我使用的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