Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 1996 23:21:41 +0000 ()
From:      James Raynard <fqueries@parody.tecc.co.uk>
To:        Brian Litzinger <brian@mediacity.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sorting by character position
Message-ID:  <Pine.BSF.3.91.960104231934.954A-100000@parody.tecc.co.uk>
In-Reply-To: <199601020502.VAA23128@MediaCity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Jan 1996, Brian Litzinger wrote:

> All I want to do is
> 
> sort -n -d -k 14,29 <unsorted >sorted
> 
> where -k 14,29 is supposed to mean that sort is supposed to consider
> the data in columns 14 - 29 of each line as the key to sort by.
> 
> However, from my reading of the sort man page, it doesn't seem to
> have this functionality.  However, I remember I used to be able
> to do this in my SYSV days.

It seems to be there in 2.1.0R:-

-k POS1[,POS2]
              An alternate syntax for  specifying  sorting  keys.
              The  fields  and  character  positions are numbered
              starting with 1.

James

Segmentation fault (core dumped): cannot find file '.signature'




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960104231934.954A-100000>