Friday, April 23, 2010

How to find files which has the word

To find files which doesn't contain the word:

find . -name "*.java" | xargs grep -L 'class'



How to find files which has the word:

find . -name "*.java" | xargs grep -l 'class'

No comments: