I'm a linux newbie. I need to search for a string "teststring" in all *.java files coming under /home/user1/ (including subfolders). How can I do it in linux via shell command.
feedback
|
|
The easiest way is to use GNU grep's features:
If you're ever on another unix variant that doesn't have GNU grep, here's a portable way:
| |||
|
feedback
|
|
using ack you just type: | |||
|
feedback
|
|
For this ack aka ack-grep its the killer app in my mind ;) You can | |||
|
feedback
|
|
Found it. Posting it as it might help someone.
Please correct if there is any better way. | |||||
feedback
|