Date: Tue, 15 Jun 1999 15:39:47 -0700 (MST) From: chris <chris@ns1.aepnet.com> To: Ben Smithurst <ben@scientia.demon.co.uk> Cc: kip@lyris.com, freebsd-stable@FreeBSD.ORG Subject: Re: open files Message-ID: <Pine.LNX.4.04.9906151537340.20513-100000@ns1.aepnet.com> In-Reply-To: <19990615215254.A8122@rainbow5.scientia.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
why? I was always fond of stuff like:
vi `find /usr/src/sys -exec grep -l "SYSCTL.*maxfiles" \{\} \;`
On Tue, 15 Jun 1999, Ben Smithurst wrote:
> kip@lyris.com wrote:
>
> > find . -name "*" | xargs grep "SYSCTL\."
>
> What's that backslash for? DES didn't tell you to put that in the
> regular expression. Quite why you are typing `find . -name "*"' rather
> than just `find .', is also unclear.
>
> > find . -name "*" | xargs grep "SYSCTL\.*maxfiles"
>
> Try,
>
> find . | xargs grep "SYSCTL.*maxfiles"
>
> (from /usr/src/sys of course)
>
> > don't find anything, just searching for SYSCTL ends up searching through
> > binaries.
>
> Check grep(1) for what the "-a" option does.
>
> --
> Ben Smithurst | PGP: 0x99392F7D
> ben@scientia.demon.co.uk | key available from keyservers and
> | ben+pgp@scientia.demon.co.uk
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.04.9906151537340.20513-100000>
