grep コマンド

09.06.18

浮浪プログラマの始末書:[Unix] 全てのサブディレクトリをgrep

複数のファイル(指定ディレクトリ以下)を対象に検索する場合。

find . -name ‘*.c’ | xargs grep ’検索したいパターン’