home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!airgun!airgun.wg.waii.com!bab
- From: bab@se39.wg2.waii.com (Brian Button)
- Newsgroups: comp.unix.questions
- Subject: Re: recursive grep'ing
- Message-ID: <BAB.92Dec28110925@se39.wg2.waii.com>
- Date: 28 Dec 92 16:09:25 GMT
- References: <Bzvwwo.Aq8@NCoast.ORG> <1992Dec28.043508.3237@csie.nctu.edu.tw>
- Sender: news@airgun.wg.waii.com
- Organization: Western Geophysical Exploration Products
- Lines: 33
- Nntp-Posting-Host: se39.wg2.waii.com
- In-reply-to: cp78065@csie.nctu.edu.tw's message of 28 Dec 92 04:35:08 GMT
-
-
- -->"Ji-Tzay" == Ji-Tzay Yang <cp78065@csie.nctu.edu.tw> writes:
-
- Brad Banko (btb@NCoast.ORG) wrote:
- :
- : A small question, is it possible to recursively grep files? This could
- : be very useful, especially since many users on my unix box have files that con-
- : tain illegalities. Any help thru e-mail would be greatly appreciated.
- :
- :
- : --
- : Brad Banko
- : Internet : btb@ncoast.org
- :
- :
-
- Ji-Tzay> Try the following line:
-
- Ji-Tzay> find . -name "*" -print | xargs grep "YOUR PATTERN"
-
- You should be able to drop the -name part, since you want all names.
-
- Just use find . -print | xargs grep "PATTERN"
-
- bab
- --
- |-----------------------|----------------------------------------------------|
- | Brian Button | email : button@wg2.waii.com |
- | Design Engineer | 71023.276@compuserve.com |
- | Western Geophysical | voice : (713)964-6221 |
- | 3600 Briarpark |----------------------------------------------------|
- | Houston, Texas 77042 | Opinions Be Mine!! |
- |-----------------------|----------------------------------------------------|
-