學習筆記
Pages - Menu
(移至...)
▼
友站連結
(移至...)
直銷-艾多美介紹
▼
2014/12/14
找尋檔案中的字串-find / grep 指令
在linux底下,找尋目錄及子目錄的檔案的字串:
要利用 find 的功能來協助,就嘗試寫寫看囉!我的寫法如下:
# find ./ -type f -name \*.php |xargs grep 'localhost'
# grep -r --include='*.php' localhost .
‹
›
首頁
查看網路版