1
我有我的Unix機器>搜索的文件引用
我需要比較兩個文件,看看他們是如何在整個代碼中引用的代碼目錄中的結賬。因此,這將涉及搜索目錄,然後搜索文件。
,所以我稍微有
search through files within the folder structure | grep "myReference" | less
方式的問題是我不知道這樣做的第一位的有效方式。
我有我的Unix機器>搜索的文件引用
我需要比較兩個文件,看看他們是如何在整個代碼中引用的代碼目錄中的結賬。因此,這將涉及搜索目錄,然後搜索文件。
,所以我稍微有
search through files within the folder structure | grep "myReference" | less
方式的問題是我不知道這樣做的第一位的有效方式。
grep -nir 'myReference' .
| less
grep -nr "Search term" /path/to/files/
用''替換'*'.'' –
@KolyolyHorvath編輯,謝謝你:) –