From owner-freebsd-questions Wed Oct 24 6: 8:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from k0r3.reflektor.cz (k0r3.reflektor.cz [212.24.129.54]) by hub.freebsd.org (Postfix) with SMTP id 3419537B40B for ; Wed, 24 Oct 2001 06:08:46 -0700 (PDT) Received: (qmail 7066 invoked by uid 204); 24 Oct 2001 13:08:45 -0000 Received: from neuhauser@mail.cz by k0r3.reflektor.cz with qmail-scanner-0.96 (. Clean. Processed in 0.506066 secs); 24 Oct 2001 13:08:45 -0000 Received: from unknown (HELO mail.cz) (194.228.207.249) by k0r3.reflektor.cz with SMTP; 24 Oct 2001 13:08:44 -0000 Date: Wed, 24 Oct 2001 15:13:20 +0200 From: Roman Neuhauser To: freebsd-questions@freebsd.org Subject: Re: finding files containing specific text Message-ID: <20011024151320.A20018@roman.mobil.cz> Mail-Followup-To: freebsd-questions@freebsd.org References: <200110241256.f9OCuB801980@lv.raad.tartu.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200110241256.f9OCuB801980@lv.raad.tartu.ee> User-Agent: Mutt/1.3.23i 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 > From: "Toomas Aas" > To: freebsd-questions@freebsd.org > Date: Wed, 24 Oct 2001 14:55:25 +0200 > Subject: finding files containing specific text > > Hello! > > 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'? > > Thanks in advance. grep -FIHnr 'starfish' ~ -- FreeBSD 4.4-STABLE 3:10PM up 1 day, 53 mins, 9 users, load averages: 0.06, 0.07, 0.08 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message