當前含有某個字符串的某個文件 grep

grep -rn "hello,world!" *     find . -maxdepth 1 -name "f*" |xargs grep -nr --color=auto "best_test_acc*"   * : 表示當前目錄全部文件,也能夠是某個文件名php -r 是遞歸查找 -n 是顯示行號 -R 查找全部文件包含子目錄 -i 忽略大小寫    下面是一些有意思的命令行參數:h
相關文章
相關標籤/搜索