Wednesday, November 01, 2006

 

finding a string in a bunch of files using GREP

1. I had a situation where there was a variable by name "production.variable" being used in a java file, but i wanted to know where it is being used apart from this java file, i have multiple folders under which there were many java files and XML files, now how to find which of these files use production.variable"

ANS : grep production.variable -R *
[OR]
grep 'some strings with spaces' -R *

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?