From owner-freebsd-stable Mon Apr 30 0:11:38 2001 Delivered-To: freebsd-stable@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 16A5A37B422 for ; Mon, 30 Apr 2001 00:11:35 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f3U7BWX01826; Mon, 30 Apr 2001 00:11:32 -0700 (PDT) Date: Mon, 30 Apr 2001 00:11:32 -0700 From: Alfred Perlstein To: Dan Larsson Cc: FreeBSD Stable List Subject: Re: Bug in sort(1) on FreeBSD-4.3 STABLE? Message-ID: <20010430001131.T18676@fw.wintelcom.net> References: <20010430085951.B69265-100000@hq1.tyfon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010430085951.B69265-100000@hq1.tyfon.net>; from dl@tyfon.net on Mon, Apr 30, 2001 at 09:06:00AM +0200 X-all-your-base: are belong to us. Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Dan Larsson [010430 00:06] wrote: > > % awk '{print $4}' /var/log/cache/access.log | sort | \ > uniq -c | sort -r | head > 4948 TCP_MEM_HIT/200 > 3963 TCP_MISS/304 > 3666 TCP_MISS/302 > 3640 TCP_REFRESH_HIT/200 > 31988 TCP_MISS/200 > 2973 TCP_MISS/206 > 2503 TCP_HIT/200 > 1799 TCP_MISS/000 > 1563 TCP_REFRESH_MISS/200 > 13568 TCP_IMS_HIT/304 > > This seems to me as some sort of bug. Please correct me if I'm wrong. You're wrong. :) 1) explain the expected output I'm guessing you want it sorted in reverse numerical order. so: 2) use the -n flag with sort as documented in the manpage. -- -Alfred Perlstein - [alfred@freebsd.org] Represent yourself, show up at BABUG http://www.babug.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message