Subject: Re: Search all files for a string ?
To: None <netbsd-help@netbsd.org>
From: Miguel Mendez <flynn@energyhq.homeip.net>
List: netbsd-help
Date: 01/28/2003 16:43:54
--unIQ:Wz4v,=.lSg6
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Tue, 28 Jan 2003 16:35:21 +0100
Arclele <buste@iol.it> wrote:

Hi,

> >  Is there a tool that searches inside all files 
> >  in a directory or a partition for a particular 
> >  string of text ?
> >
> >  I have 1.6 running KDE on a i386.
> >
> cat * | grep string_of_text

cat overuse :-)

grep string_of_text *

That will also tell you which file matches the search expression.

Cheers,
-- 
        Miguel Mendez - flynn@energyhq.homeip.net
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
        Of course it runs NetBSD!

--unIQ:Wz4v,=.lSg6
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+NqU+nLctrNyFFPERAnOXAJ96Z8zzhsfqGytV82Azi7ubv1Vs/gCgutAw
p0HD6B55as7NC6rgL6ROFm0=
=10jZ
-----END PGP SIGNATURE-----

--unIQ:Wz4v,=.lSg6--