On Wed, Jan 13, 2010 at 1:51 PM, Suresh Kumar Subramanian <
[email protected]> wrote:

>
> How to find the text from a file(directory & subdirectory). (recursive
> search)
> cat * | grep "text"  But it searches only the current directory also it not
> lists the filename.
>
>
The  -R switch for grep works for you :)

grep -R "search_text" <Directory>


Saravanan Sundaramoorthy
Red Hat Certified Engineer
+91 99404 32545
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to