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
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
>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
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
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.
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
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.
>
> 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.