liunx 下在指定文件夹下搜索字符
命令:
grep -r -e string directory
说明:
-r
用于递归;-e
是可选的,但其参数指定要搜索的正则表达式
string 要查找的字符
参考链接:https://stackoverflow.com/questions/15622328/how-to-grep-a-string-in-a-directory-and-all-its-subdirectories-files-in-linux
move on
posted on 2019-09-29 10:12 Helianthus720 阅读(134) 评论(0) 编辑 收藏 举报