how find specific words in a file
Posted on 2008-06-12
I want to find some set of words should be find out in a directory. In that directory sub folders are there.In that sub folders it should search only in java files.detaills should be captured in such a way that In which file the particular word is present , line number and the entire line where the word is present.
for example some set of words are there
program should search all the sub folders whenever it is matched above words ,it should capture line number,entire line and the filename.