[NTLUG:Discuss] searching text in all files for match
Tom Woody
woody at nfri.com
Wed Jun 5 10:13:51 CDT 2002
I always use:
find / -type f -print -exec fgrep "text to find" {} \;
it will print out every filename/path that it finds, but it will also print out additional text if it finds a match - I know there is a better way but this works for me...
On Wed, 05 Jun 2002 09:42:31 -0500
Fred James <fredjame at concentric.net> wrote:
> My brain is stuck - trying to remember how to search all text files on
> the machine for matches to a text string. Any nudges?
>
> --
> "Wisdom begins in wonder." - Socrates
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
--
Tom Woody
Systems Administrator
NationWide Flood Research, Inc.
phone: 214-631-0400 x209
fax: 214-631-0800
If you have any trouble sounding condescending,
find a Unix user to show you how it's done.
--Scott Adams
More information about the Discuss
mailing list