grep命令查找字符串

在開發過程當中常常會遇到查找字符串在哪的需求。code 這是grep 命令是最好的使用場景。遞歸 查找某一目錄下全部包含DownloadManager字符的文件開發 grep -rn DownloadManager /Users/peter/Downloads/Android4.4源碼 r : recurisive  遞歸字符串 n:顯示line number源碼
相關文章
相關標籤/搜索