Suresh's Blog
Showing posts with label
ls *|grep Unix command to grep subfolders
.
Show all posts
Showing posts with label
ls *|grep Unix command to grep subfolders
.
Show all posts
Friday, June 26, 2009
Unix command to grep subfolders
Here is a Unix command which will be useful for many folks scratching their head to search something in sub folders
find . -name *.doc -exec egrep
{} \;
Example:
$ find . -name *.doc -exec egrep Administrator {} \;
Binary file ./Desktop/interview_experience.doc matches
Binary file ./Desktop/Resume.doc matches
Hope this helps!
Older Posts
Home
Subscribe to:
Posts (Atom)