Subject: Re: [NTLUG:Discuss] searching text in all files for match

Sameer Khan eb110 at attglobal.net
Wed Jun 5 21:28:48 CDT 2002


tcgrep, which is Tom Christiansen's rewrite of grep (
http://www.perl.com/language/ppt/src/grep/tcgrep ) is
pretty nifty for this kind of task. By default, tcgrep
filters out anything other than a text file.

Its highlighting of matches (-H) is also invaluable. Don't
know of any other flavor of grep which has this
feature. This would be my $0.02 variant:

find / -type f -print | xargs tcgrep "search for this"


-Sameer





More information about the Discuss mailing list