Date: Mon, 30 Apr 2001 00:11:32 -0700 From: Alfred Perlstein <bright@wintelcom.net> To: Dan Larsson <dl@tyfon.net> Cc: FreeBSD Stable List <stable@FreeBSD.ORG> Subject: Re: Bug in sort(1) on FreeBSD-4.3 STABLE? Message-ID: <20010430001131.T18676@fw.wintelcom.net> In-Reply-To: <20010430085951.B69265-100000@hq1.tyfon.net>; from dl@tyfon.net on Mon, Apr 30, 2001 at 09:06:00AM %2B0200 References: <20010430085951.B69265-100000@hq1.tyfon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
* Dan Larsson <dl@tyfon.net> [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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010430001131.T18676>
