[Linux]grep和find配套查找字符串技巧
1,从目录或者文件中搜索文本字符串
grep -rniw "字符串" "输入目录或文件路径"
选项:
-e, --regexp=PATTERN use PATTERN for matching
-r, --recursive like --directories=recurse
-n, --line-number print line number with output lines
-w, --word-regexp force PATTERN to match only whole words
原创
2022-01-22 22:56:57 ·
2215 阅读 ·
0 评论