検索文字列の入ったファイル名を表示

find ./ -type f -name *.* -print | xargs grep -l 検索文字列 /dev/null

sysconfig配下に192.168.1.0の記述があるファイルの検索方法

find /etc/sysconfig -type f -print0 | xargs -0 fgrep '192.168.1.0'

最終更新:2011年02月24日 11:41