home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!cs.utexas.edu!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!sixgun.East.Sun.COM!newscan!news
- From: beric@sunvcr.canada.sun.com (Beric Maass - Sun Vancouver SPS)
- Subject: Re: need a bit of help in
- Message-ID: <1993Jan4.181902.20122@newscan.canada.sun.com>
- Sender: news@newscan.canada.sun.com
- Nntp-Posting-Host: gene.canada.sun.com
- Reply-To: beric@sunvcr.canada.sun.com
- Organization: Sun Microsystems Computer Corp.
- References: <1993Jan1.195022.23031@mnemosyne.cs.du.edu>
- Date: Mon, 4 Jan 1993 18:19:02 GMT
- Lines: 21
-
- In article 23031@mnemosyne.cs.du.edu, rduta@nyx.cs.du.edu (Radu) writes:
- >
- >2) I was wandering what is the easiest way to do a recursive grep, where
- > it searches all the files in all dirs. I was thinking something along
- > the lines of "grep -R string *" but the "-R" flag is not an option.
- >
- >any ideas?
-
- Yup -
-
- find . -type f -exec grep -i string_to_search /dev/null {} \;
-
- --Beric
- =======================
- I'm not sure who's opinions I've expressed but rest assured,
- odds are, they are not those of my employer's
-
-
-
-
-
-