Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Oct 2005 03:35:21 -0400
From:      Parv <parv@pair.com>
To:        Peter Matulis <petermatulis@yahoo.ca>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: help with shell script
Message-ID:  <20051013073521.GB957@holestein.holy.cow>
In-Reply-To: <20051013053543.51718.qmail@web60016.mail.yahoo.com>
References:  <20051012204909.J78693@wolf.pjkh.com> <20051013053543.51718.qmail@web60016.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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

-- 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051013073521.GB957>