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

posted on 2019-09-29 10:12  Helianthus720  阅读(134)  评论(0编辑  收藏  举报

导航