LoginSignup
1
1

More than 5 years have passed since last update.

文字列に一致するファイルを表示するコマンド

Last updated at Posted at 2013-05-30

カレントディレクトリで"aaa"という文字列が含まれるファイルを表示する

find . | xargs egrep -l "aaa"

カレントディレクトリで"aaa"という文字列が含まれるファイル数を表示する

find . | xargs egrep -l "aaa" | wc -l
1
1
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1