Ack/Ag 没有 return 没有 * 的搜索结果
Ack/Ag does not return search result without *
我正在尝试在目录中搜索文本,结果发现以下语法 return 没有任何结果
ack -i "0xabcdef" ./
ack -i "0xabcdef"
ack -i "0xabcdef" .
当以下命令有效时
ack -i "0xabcdef" *
有人可以解释为什么会这样吗? * 的意义是什么。我还注意到目录有符号链接
您不必指定要确认的目录。默认情况下,它会深入到当前目录。
I also noticed that the directory has symbolic links
那么最好的办法是查看手册(man ack
或 ack --man
)并搜索 "link"。您首先会发现这个选项:
--[no]follow
Follow or don't follow symlinks, other than whatever starting files
or directories were specified on the command line.
This is off by default.
这意味着如果你想要ack跟随符号链接,你需要指定--follow
选项。
我正在尝试在目录中搜索文本,结果发现以下语法 return 没有任何结果
ack -i "0xabcdef" ./
ack -i "0xabcdef"
ack -i "0xabcdef" .
当以下命令有效时
ack -i "0xabcdef" *
有人可以解释为什么会这样吗? * 的意义是什么。我还注意到目录有符号链接
您不必指定要确认的目录。默认情况下,它会深入到当前目录。
I also noticed that the directory has symbolic links
那么最好的办法是查看手册(man ack
或 ack --man
)并搜索 "link"。您首先会发现这个选项:
--[no]follow
Follow or don't follow symlinks, other than whatever starting files
or directories were specified on the command line.
This is off by default.
这意味着如果你想要ack跟随符号链接,你需要指定--follow
选项。