grep

Lemieux lemieux at ireq.hydro.qc.ca
Wed Oct 24 02:14:32 AEST 1990


In article <1990Oct23.123025.18012 at kodak.kodak.com> tiefel at sunshine.Kodak.COM (Lenny Tiefel) writes:
>I have a main directory with hundreds of subdirectories, 
>and I want to find a file with a particular string, say "xyz"
>The grep command only works in one directory at a time. Is there
>a way of searching my whole directory structure to find a file
>with a particular string?
>
>Thanks.
>
>-- 
>
>Len Tiefel           tiefel at kodak.com

   Try this: find . -print -name '*xyz*'

   - Eric

-----------------------------------------------------------------------------
Eric LEMIEUX				| Internet: lemieux at ireq.hydro.qc.ca
Institut de Recherche d'Hydro-Quebec	|
1800 Montee Sainte-Julie		| TEL: (514) 652-8139 
Varennes, Quebec, Canada 		| FAX: (514) 652-8309
-----------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list