Linux/Ubuntu下小技巧:以内容搜索文件

grep -rnw '/path/to/somewhere/' -e "pattern"

其中/path/to/somewhere/要搜索的路径,pattern要搜索的内容

猜你喜欢

转载自blog.csdn.net/dddxxxx/article/details/80565574