LoginSignup
0
0

More than 5 years have passed since last update.

あるディレクトリ下で、ある文字列は含むがある文字列は含まないファイルを探す方法

Last updated at Posted at 2018-07-05

ディレクトリAAA下で、文字列BBBは含むが文字列CCCは含まないファイルのファイル名を出力する

grep -x -i -f <(grep -ril BBB AAA) <(grep -Lir CCC AAA)
0
0
0

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
0
0