Home » Questions » Computers [ Ask a new question ]

How can I recursively grep particular files in a directory?

How can I recursively grep particular files in a directory?

I'm new to linux and grep, and trying to find my way around.

Asked by: Guest | Views: 253
Total answers/comments: 2
bert [Entry]

find . -name '*.java' | xargs grep <your pattern here>
bert [Entry]

"What about:

grep -irn --include=""*\.java"" somePhrase *"