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.
using ack you just type:
cd /home/user01 && ack --java teststring
For this ack aka ack-grep its the killer app in my mind ;)
ack some_string /in/path_y to find some_string in path_y
ack some_other_string to find some_other_sting in current dir.