Date: Thu, 7 Feb 2013 10:36:42 GMT From: Anton Shterenlikht <mexas@bristol.ac.uk> To: avilla@freebsd.org, bapt@FreeBSD.org Cc: lists@eitanadler.com, freebsd-ports@freebsd.org, sperber@freebsd.org Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all Message-ID: <201302071036.r17AagEa054065@mech-cluster241.men.bris.ac.uk> In-Reply-To: <20130207095201.GA26686@ithaqua.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Date: Thu, 7 Feb 2013 10:52:01 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Alberto Villa <avilla@freebsd.org> Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all On Thu, Feb 07, 2013 at 09:54:59AM +0100, Alberto Villa wrote: > On Thursday 07 February 2013 06:32:54 Armin Pirkovitsch wrote: > > # find /usr/ports -name Makefile | xargs grep -R FEATURES | wc -l > > 82 > > # find /usr/ports -name Makefile | xargs grep -R USES | wc -l > > 20 > >=20 > > Sounds to me like there are less false positives for USES. >=20 > Add -w and USES wins: > $ find /usr/ports -name Makefile | xargs grep -Rw FEATURES | wc -l > 37 > $ find /usr/ports -name Makefile | xargs grep -Rw USES | wc -l > 0 Is "-R" really needed in this case? I think there is no recursion as you already found all files. Anyway, I get the same answers with no "-R". Anton P.S. I'm not trying to be clever, just always fascinated by multi-pipe unix examples, so I try to study those in detail.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302071036.r17AagEa054065>