2015/12/03

Bash: search two lines in a file

grep -rl 'use Module1' . | xargs -I{} grep -l 'use Module2' '{}'

ag -l 'use Module1' | xargs -I{} ag -l 'use Module2' '{}'

No comments:

Post a Comment