From owner-freebsd-questions@FreeBSD.ORG Thu Oct 13 07:35:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBEF816A41F for ; Thu, 13 Oct 2005 07:35:16 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FFE843D48 for ; Thu, 13 Oct 2005 07:35:16 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.76.67]) by mta9.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051013073515.UYKX20109.mta9.adelphia.net@default.chvlva.adelphia.net>; Thu, 13 Oct 2005 03:35:15 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id BDF1DB589; Thu, 13 Oct 2005 03:35:21 -0400 (EDT) Date: Thu, 13 Oct 2005 03:35:21 -0400 From: Parv To: Peter Matulis Message-ID: <20051013073521.GB957@holestein.holy.cow> Mail-Followup-To: Peter Matulis , freebsd-questions References: <20051012204909.J78693@wolf.pjkh.com> <20051013053543.51718.qmail@web60016.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051013053543.51718.qmail@web60016.mail.yahoo.com> Cc: freebsd-questions Subject: Re: help with shell script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 07:35:17 -0000 in message <20051013053543.51718.qmail@web60016.mail.yahoo.com>, wrote Peter Matulis thusly... Could your please wrap lines around 69 or so characters? > What I need is the size as the first item (not the second) on each > line. Then I can use sort. You can easily specify the column|key to sort on via -k flag ... { echo "polka 1" ; echo "dot 4"; } \ | sort -k2,2nr - Parv --