Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2003 15:18:14 -0800
From:      Matthew Hunt <mph@astro.caltech.edu>
To:        Chris Readle <patterner@rocketmail.com>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: Recursion with grep?
Message-ID:  <20031113231813.GA66928@wopr.caltech.edu>
In-Reply-To: <20031113225534.69670.qmail@web40611.mail.yahoo.com>
References:  <20031113224657.GA66502@wopr.caltech.edu> <20031113225534.69670.qmail@web40611.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 13, 2003 at 02:55:34PM -0800, Chris Readle wrote:

> You can also do this with something like:
> 
> ls -laR | egrep *.c

He's trying to search the contents of files for a string.  Your
suggestion searches the directory listing (and not in a very useful way,
since *.c does not mean the same thing as a regular expression as it
does as a wildcard, and it could also match parts of the "ls -l" output
besides the filename).

-- 
Matthew Hunt <mph@astro.caltech.edu> * Stay close to the Vorlon.
http://www.pobox.com/~mph/           *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031113231813.GA66928>