Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!IRO.UMontreal.CA!pinard From: pinard@IRO.UMontreal.CA (Francois Pinard) Newsgroups: comp.unix.questions Subject: Re: grep Message-ID: Date: 30 Oct 90 21:13:54 GMT References: <1990Oct23.123025.18012@kodak.kodak.com> <64@gdx.UUCP> Sender: news@IRO.UMontreal.CA Organization: Universite' de Montre'al Lines: 18 In-Reply-To: jay@gdx.UUCP's message of 30 Oct 90 04:16:35 GMT In article <64@gdx.UUCP> jay@gdx.UUCP (Jay A. Snyder) writes: try: find ./ -name "*" -exec grep "xyz" '{}' \; the find command will execute any command in this manner. I do not want to restart an overlong debate about xargs security :-). If you have many files, use instead: find ./ -print | xargs grep xyz which is slighlty faster. xargs may quite often be used in combination with `find -print' in this manner. The -print is not required on the newer versions of find. -- Franc,ois Pinard ``Vivement GNU!'' pinard@iro.umontreal.ca (514) 588-4656 cp 886 L'Epiphanie (Qc) J0K 1J0 ...!uunet!iros1!pinard