[NTLUG:Discuss] searching text in all files for match
Fred James
fredjame at concentric.net
Wed Jun 5 10:18:14 CDT 2002
Thanks - that's the one I was looking for.
Chris Cox wrote:
> Fred James 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?
>>
> find . -type f | xargs file | grep -i text | cut -f1 -d: | xargs grep
> "search for this"
>
> From: http://www.unixreview.com/documents/s=1237/urm0103h/0103h.htm
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>
--
"Wisdom begins in wonder." - Socrates
More information about the Discuss
mailing list