ディレクトリAAA下で、文字列BBBは含むが文字列CCCは含まないファイルのファイル名を出力する
grep -x -i -f <(grep -ril BBB AAA) <(grep -Lir CCC AAA)
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
ディレクトリAAA下で、文字列BBBは含むが文字列CCCは含まないファイルのファイル名を出力する
grep -x -i -f <(grep -ril BBB AAA) <(grep -Lir CCC AAA)
Register as a new user and use Qiita more conveniently
Go to list of users who liked