From owner-freebsd-stable Mon Apr 30 0:10:17 2001 Delivered-To: freebsd-stable@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-27.dsl.lsan03.pacbell.net [63.207.60.27]) by hub.freebsd.org (Postfix) with ESMTP id 947FE37B422 for ; Mon, 30 Apr 2001 00:10:13 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B20C666C9B; Mon, 30 Apr 2001 00:10:08 -0700 (PDT) Date: Mon, 30 Apr 2001 00:10:08 -0700 From: Kris Kennaway To: Dan Larsson Cc: FreeBSD Stable List Subject: Re: Bug in sort(1) on FreeBSD-4.3 STABLE? Message-ID: <20010430001008.B10458@xor.obsecurity.org> References: <20010430085951.B69265-100000@hq1.tyfon.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="s2ZSL+KKDSLx8OML" 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 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --s2ZSL+KKDSLx8OML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 30, 2001 at 09:06:00AM +0200, Dan Larsson wrote: >=20 > % 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 >=20 > This seems to me as some sort of bug. Please correct me if I'm wrong. I'm not sure what you're claiming to be the bug: those entries look to be correctly sorted in reverse ascii order. Perhaps you wanted sort -n? Kris --s2ZSL+KKDSLx8OML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE67Q/QWry0BWjoQKURAssbAKDJtkwySRoTflySXIKA4GBjmVR0oACg6Ay7 qrpQo+4hFKpwFda/lVu1JxU= =niMs -----END PGP SIGNATURE----- --s2ZSL+KKDSLx8OML-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message