Re: [Ilugc] recursive search
On Wed, Jan 13, 2010 at 1:51 PM, Suresh Kumar Subramanian < sureshkuma...@carc.co.in> wrote: > Hi, > > How to find the text from a file(directory & subdirectory). (recursive > search) > > You can also try regexxer if you want a GUI based one. Thanks & Regards, Siva Chandran P ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] recursive search
Hi, On 01/13/2010 01:52 PM, Pandian R wrote: find .|xargs grep 'text' Pandian R --- *Free* software is a matter of liberty not price. You should think of "free" as in "free speech". Proud user of Ubuntu 9.1 - 64 Please avoid top posting the next time. cheers, - steve -- random non tech spiel: http://lonetwin.blogspot.com/ tech randomness: http://lonehacks.blogspot.com/ what i'm stumbling into: http://lonetwin.stumbleupon.com/ ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RE: [Ilugc] recursive search
>The -R switch for grep works for you :) >grep -R "search_text" Thanks it works. ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] recursive search
On 1:51pm, Suresh Kumar Subramanian wrote: > cat * | grep "text" Useless use of CAT :) Use recursive (-r) option of Grep command: grep -r "text" /prog Bye :) -- Bharathi S ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] recursive search
Hi, >How to find the text from a file(directory & subdirectory). (recursive search) read the man page for grep >I want to search a "text" from all the files in the directory /prog and subdirectories. #grep -r string /proc --- Thanks & Regards, Govi My Expose are http://cyberbytes.wordpress.com My Scriblings are http://puthiyapathai.wordpress.com ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] recursive search
On Wed, Jan 13, 2010 at 1:51 PM, Suresh Kumar Subramanian < sureshkuma...@carc.co.in> 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" Saravanan Sundaramoorthy Red Hat Certified Engineer +91 99404 32545 ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] recursive search
find .|xargs grep 'text' Pandian R --- *Free* software is a matter of liberty not price. You should think of "free" as in "free speech". Proud user of Ubuntu 9.1 - 64 On Wed, Jan 13, 2010 at 1:51 PM, Suresh Kumar Subramanian < sureshkuma...@carc.co.in> wrote: > Hi, > > How to find the text from a file(directory & subdirectory). (recursive > search) > > Ex : > Directories : > /prog > /prog/sub1/ > /prog/sub1/dir1/ > /prog/sub2/ > > Each folder contains some text files. > > I want to search a "text" from all the files in the directory /prog and > subdirectories. > > I tried > cat * | grep "text" But it searches only the current directory also it not > lists the filename. > > How do I do this > > Thanks > Suresh > ___ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc > ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
Re: [Ilugc] recursive search
> > How to find the text from a file(directory & subdirectory). (recursive search) > > Ex : > Directories : > /prog > /prog/sub1/ > /prog/sub1/dir1/ > /prog/sub2/ > > Each folder contains some text files. > > I want to search a "text" from all the files in the directory /prog and > subdirectories. > > I tried > cat * | grep "text" But it searches only the current directory also it not > lists the filename. > > How do I do this man grep. you may want to check -R and -H flags once again. Abishek ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
[Ilugc] recursive search
Hi, How to find the text from a file(directory & subdirectory). (recursive search) Ex : Directories : /prog /prog/sub1/ /prog/sub1/dir1/ /prog/sub2/ Each folder contains some text files. I want to search a "text" from all the files in the directory /prog and subdirectories. I tried cat * | grep "text" But it searches only the current directory also it not lists the filename. How do I do this Thanks Suresh ___ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc