From owner-freebsd-questions Wed Oct 24 6: 5:12 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sdsl-216-36-101-146.dsl.chi.megapath.net (sdsl-216-36-101-146.dsl.chi.megapath.net [216.36.101.146]) by hub.freebsd.org (Postfix) with SMTP id F2EAF37B405 for ; Wed, 24 Oct 2001 06:05:05 -0700 (PDT) Received: (qmail 45886 invoked from network); 24 Oct 2001 13:05:23 -0000 Received: from apu.five.sight (HELO apu.five.sight.fivesight.com) (lucas@192.168.0.102) by wiggum.five.sight with SMTP; 24 Oct 2001 13:05:23 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15318.48274.561205.271382@apu.five.sight> Date: Wed, 24 Oct 2001 08:05:22 -0500 To: "Toomas Aas" From: Lucas Bergman Cc: freebsd-questions@freebsd.org Subject: Re: finding files containing specific text In-Reply-To: <200110241256.f9OCuB801980@lv.raad.tartu.ee> References: <200110241256.f9OCuB801980@lv.raad.tartu.ee> X-Mailer: VM 6.96 under Emacs 20.7.2 Reply-To: lucas@slb.to Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Somewhere in my /home directory there are some files containing text > 'starfish'. > > How can I get a list of all files in the /home directory and its > subdirectories that contain the text 'starfish'? $ find ~ -type f | xargs grep -l starfish Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message