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

Alton R. Pouncey, II alton at trainers-r-us.com
Wed Jun 5 10:19:12 CDT 2002


On Wed, 2002-06-05 at 09:42, 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?
> 
> -- 
> "Wisdom begins in wonder." - Socrates
> 
> 
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
> 

find . -exec grep -l 'text to search for' {} \;

-- 
Alton R. Pouncey, II
SCSA, SCNA, CCNA, CIW Professional
Director of Information Services
http://www.trainers-r-us.com





More information about the Discuss mailing list