From owner-freebsd-questions Thu Jan 4 15:51:38 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA24233 for questions-outgoing; Thu, 4 Jan 1996 15:51:38 -0800 (PST) Received: from parody.tecc.co.uk (parody.tecc.co.uk [193.128.6.83]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA24212 for ; Thu, 4 Jan 1996 15:51:32 -0800 (PST) Received: (from fqueries@localhost) by parody.tecc.co.uk (8.6.12/8.6.12) id XAA00975; Thu, 4 Jan 1996 23:21:41 GMT Date: Thu, 4 Jan 1996 23:21:41 +0000 () From: James Raynard To: Brian Litzinger cc: freebsd-questions@freebsd.org Subject: Re: sorting by character position In-Reply-To: <199601020502.VAA23128@MediaCity.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Mon, 1 Jan 1996, Brian Litzinger wrote: > All I want to do is > > sort -n -d -k 14,29 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'