From owner-freebsd-stable Tue Jun 15 15:46:46 1999 Delivered-To: freebsd-stable@freebsd.org Received: from ns1.aepnet.com (ns1.aepnet.com [208.129.247.1]) by hub.freebsd.org (Postfix) with ESMTP id 0357E14F49 for ; Tue, 15 Jun 1999 15:46:44 -0700 (PDT) (envelope-from chris@ns1.aepnet.com) Received: from localhost (chris@localhost) by ns1.aepnet.com (8.8.7/8.8.7) with ESMTP id PAA20764; Tue, 15 Jun 1999 15:39:47 -0700 Date: Tue, 15 Jun 1999 15:39:47 -0700 (MST) From: chris To: Ben Smithurst Cc: kip@lyris.com, freebsd-stable@FreeBSD.ORG Subject: Re: open files In-Reply-To: <19990615215254.A8122@rainbow5.scientia.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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