原创 Linux查找包含指定字符串的文件

查找當前目錄下,包含“Hello”字符串的所有文件 【方式1】 grep -rn "Hello" ./ 其中,r 表示遞歸, n 表示查詢結果顯示行號 【方式2】 find ./ -name "*.*" | xargs grep