From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QM8IX-0001qW-AV for garchives@archives.gentoo.org; Tue, 17 May 2011 00:38:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82C7E1C06E; Tue, 17 May 2011 00:36:37 +0000 (UTC) Received: from sentinel.math.Princeton.EDU (sentinel.math.Princeton.EDU [128.112.16.31]) by pigeon.gentoo.org (Postfix) with ESMTP id 5580B1C06E for ; Tue, 17 May 2011 00:36:37 +0000 (UTC) Received: from math.princeton.edu ([128.112.18.16]) by sentinel.math.Princeton.EDU with esmtp (Exim 4.69) (envelope-from ) id 1QM8H6-0005NM-53 for gentoo-user@lists.gentoo.org; Mon, 16 May 2011 20:36:36 -0400 Received: by math.princeton.edu (Postfix, from userid 1737) id 18F3CC05DA; Mon, 16 May 2011 20:36:36 -0400 (EDT) Date: Mon, 16 May 2011 20:36:36 -0400 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] is a nice "place" :-D Message-ID: <20110517003636.GA29186@math.princeton.edu> References: <4DD1AEC8.5010501@earthlink.net> <201105170133.39864.alan.mckinnon@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201105170133.39864.alan.mckinnon@gmail.com> User-Agent: Mutt/1.5.20 (2009-12-10) X-Archives-Salt: X-Archives-Hash: 122a7578bc42c676d0361ffa868cd1c9 On Tue, May 17, 2011 at 01:33:39AM +0200, Alan McKinnon wrote: > grep "GET /Tmp/Linux/G" | /var/log/apache2/access_log | grep-v | \ > awk '{print $1}' | sort | uniq | wc > > In true grand Unix tradition you cannot get quicker, dirtier or more effective > than that > You can replace "sort | uniq" by "sort -u" And the "Grand Unix Tradition" probably would 'cut' instead of awk :) While you are at it, an incantation that pipes grep to awk? Seriously? W -- Willie W. Wong wwong@math.princeton.edu Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire et vice versa ~~~ I. Newton