grep

grep -r --include=*.java --include=*.xml --exclude-dir=bin "text or regexp" .

Other options -n Show the line number -l List files -o Prints the found text -i Case insensitive -v Show lines that don't match the given pattern

Tags linux command

Back