如何编写一个 bash 命令来查找当前目录中包含单词“foo”的所有文件,而不考虑大小写?
最佳答案
如果您希望“foo”根据 .
中文件的竞争进行检查,请执行以下操作:
grep . -rsni -e "foo"
有关更多选项(-I、-T、...),请参阅 man grep
。
关于bash - unix bash 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3605158/
如何编写一个 bash 命令来查找当前目录中包含单词“foo”的所有文件,而不考虑大小写?
最佳答案
如果您希望“foo”根据 .
中文件的竞争进行检查,请执行以下操作:
grep . -rsni -e "foo"
有关更多选项(-I、-T、...),请参阅 man grep
。
关于bash - unix bash 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3605158/
相关文章:
bash - VSCode : How to open two terminals on startup with different directories
arrays - (bash) 如何访问作为离散数组元素的命令输出 block ?
linux - xargs + curl "Failed writing body"(不能将多个结果保存到文件)
c++ - 这是我在 XCode 中将 boost/filesystem 加入我的 C++ 程序的最后一次尝试
linux - 系统调用 : UNIX, Linux、BSD 和 Solaris 变体