Finds all java files that contain text "Canada":
find . -name "*java" -exec grep "Canada" '{}' \; -print
Notes:
'{}' is substituted by the current file name
'-print' outputs the matching filename
Monday, January 08, 2007
Subscribe to:
Post Comments (Atom)
2 comments:
find . --name '*.java' | xargs grep Blah
I'm sorry, -name of cause.
Post a Comment