grep

計算行數

加入 -c 參數即可顯示行數

cat * | grep -c

參考資料

搜尋目錄下指定字串

grep -r "[STRING TO SEARCH FOR]" "[DIRECTORY TO SEARCH]"
grep -r "search text" "/tmp/search/folder"

參考資料

results matching ""

    No results matching ""