查找特定檔案特定內容
發表於 : 2011年 7月 7日, 15:41
使用 find 配合 grep 的方式操作, 指令如下:
這是查找 /var/web/ 下含子目錄, 檔名為 php 的內容, 用顏色標注, 查找關鍵字(內容)為 base64_decode 的檔案.
代碼: 選擇全部
find /var/web/ -name "*.php" | xargs grep --color base64_decode