grep

Thomas Tornblom thomas at uppsala.telesoft.se
Wed Oct 24 01:32:34 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.

find <dir> -type f -name '*xyz*' -print

Thomas
-- 
Real life:      Thomas Tornblom             Email:  thomas at uppsala.telesoft.se
Snail mail:     Telesoft Uppsala AB         Phone:  +46 18 189406
                Box 1218                    Fax:    +46 18 132039
                S - 751 42 Uppsala, Sweden



More information about the Comp.unix.questions mailing list