Re: [Ilugc] recursive search

2010-01-13 Thread Siva Chandran P
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

Re: [Ilugc] recursive search

2010-01-13 Thread steve
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 ne

RE: [Ilugc] recursive search

2010-01-13 Thread Suresh Kumar Subramanian
>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

2010-01-13 Thread Bharathi Subramanian
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

2010-01-13 Thread Govi
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.

Re: [Ilugc] recursive search

2010-01-13 Thread Saravanan S
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 f

Re: [Ilugc] recursive search

2010-01-13 Thread Pandian R
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.

Re: [Ilugc] recursive search

2010-01-13 Thread Abishek Goda
> > 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.