Received: from spf5.us4.outblaze.com (spf5.us4.outblaze.com [205.158.62.27]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id i9J5Pbh5015023 for ; Tue, 19 Oct 2004 05:25:37 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf5.us4.outblaze.com (Postfix) with ESMTP id 82963770A6 for ; Tue, 19 Oct 2004 05:25:36 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJmcQ-0007LV-Rc for migo@homemail.com; Tue, 19 Oct 2004 01:33:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CJmc1-0007LQ-Ae for gnu-arch-users@gnu.org; Tue, 19 Oct 2004 01:32:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CJmc0-0007LE-UM for gnu-arch-users@gnu.org; Tue, 19 Oct 2004 01:32:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJmc0-0007LB-Qx for gnu-arch-users@gnu.org; Tue, 19 Oct 2004 01:32:44 -0400 Received: from [128.255.17.57] (helo=server17.icaen.uiowa.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CJmUM-0004u6-G2 for gnu-arch-users@gnu.org; Tue, 19 Oct 2004 01:24:50 -0400 Received: from server11.icaen.uiowa.edu (server11.icaen.uiowa.edu [128.255.17.51]) by server17.icaen.uiowa.edu (8.12.9/8.12.9) with ESMTP id i9J5Oocr016815; (envelope-from ) Tue, 19 Oct 2004 00:24:50 -0500 (CDT) Received: from [192.168.1.11] (12-217-241-0.client.mchsi.com [12.217.241.0]) by server11.icaen.uiowa.edu (8.12.9/smtp-service-1.6) with ESMTP id i9J5OmtS016376; (envelope-from ) Tue, 19 Oct 2004 00:24:49 -0500 (CDT) Message-ID: <4174A530.7090507@johnmeinel.com> Date: Tue, 19 Oct 2004 00:25:04 -0500 From: John Meinel User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zenaan Harkness Subject: Re: [Gnu-arch-users] Re: File naming conventions References: <1098074588.29545.40.camel@whiskas.cashpoolcomps.com> <1098092294.5219.8.camel@johannes> <20041018181822.GD9196@puritan.pcp.ath.cx> <8D7869BC-213A-11D9-A63A-000393CFE6B8@spy.net> <1098141434.19575.42.camel@whiskas.cashpoolcomps.com> <20041018233511.GA31642@fencepost> <0D336108-2162-11D9-A63A-000393CFE6B8@spy.net> <41745D7F.5000102@johnmeinel.com> <417499B9.2040301@johnmeinel.com> <1098163105.19575.128.camel@whiskas.cashpoolcomps.com> In-Reply-To: <1098163105.19575.128.camel@whiskas.cashpoolcomps.com> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.66n X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75 on clamav.icaen.uiowa.edu X-Virus-Status: Clean Cc: arch X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1676413100==" Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 2528 Lines: 84 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1676413100== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig250B5B14DAE61D1447946E4B" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig250B5B14DAE61D1447946E4B Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Zenaan Harkness wrote: >>Actually, I really wish grep had the workaround, because otherwise I >>have to do this little hack: >> >>grep -rn "what I want" * | grep -v "{arch}/" >> >>which means it still has to grep all of those files, it just doesn't >>tell me about it. > > > So reverse your greps. > That doesn't actually work. Because the final grep is actually greping out the filename given by the first grep, not the text in the file. Something that might work is: $ find . ! -path "*arch*" -print0 | xargs -0 -n50 grep -rn "what I want" That's quite a bit to type all the time, though I think it will always work. I suppose I could define the alias: $ alias noarchgrep='find . ! -path "*arch*" -print0 | \ xargs -0 -n50 grep -rn' I think if I type: $ noarchgrep "what I want" it does the right thing. I don't really like aliases for only moderately used commands, though. Because I might not have set them on all of the machines that I use, and I frequently forget about them. That's one of the beauties of Unix. I know how find/grep/sed/etc works, and I can build up what I want from that, rather than having to remember 500 special case commands. John =:-> --------------enig250B5B14DAE61D1447946E4B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBdKUwJdeBCYSNAAMRAknwAJ93VciFt6Wq9SZ4MCYKB+HoEPcFMgCfZYc4 nZ0X0FcyVixOK0Meqf2RetQ= =tnLM -----END PGP SIGNATURE----- --------------enig250B5B14DAE61D1447946E4B-- --===============1676413100== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/ --===============1676413100==--