Thursday, August 2, 2012

The following command will find all files that contains "some text" under current dir.
grep -H -r --include=*.java "some text" .
# -H just print file names
# -r recursively under the specified dir
# --include=*.java look for only *.java files

No comments:

Post a Comment