Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!gatech!hao!oddjob!sphinx!kdw1
From: kdw1@sphinx.uchicago.edu (Keith Waclena)
Newsgroups: comp.unix.questions,comp.sources.wanted
Subject: Re: Multiple Field Sorts in UNIX(tm)
Message-ID: <2105@sphinx.uchicago.edu>
Date: Thu, 23-Jul-87 11:40:27 EDT
Article-I.D.: sphinx.2105
Posted: Thu Jul 23 11:40:27 1987
Date-Received: Sat, 25-Jul-87 07:20:47 EDT
References: <2459@whuts.UUCP> <758@custom.UUCP> <7651@mimsy.UUCP>
Reply-To: kdw1@sphinx.UUCP (Keith Waclena)
Organization: University of Chicago, Graduate Library School
Lines: 25
Xref: mnetor comp.unix.questions:3311 comp.sources.wanted:1693

In article <7651@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes:
!In article <758@custom.UUCP> boykin@custom.UUCP (Joseph Boykin) writes:
!!UNIX Sort (as well as our own PC/SORT) allows you to do exactly what you
!!want.
!
! ... unless you need a numeric sort on one field but an alphabetical
!sorts on another, or if any of the other global sort flags conflict
!for two fields.

Hmm.  My sort(1) man page says that you can apply the -n option (and
-dbfir) to individual sort fields, as in:

	$ sort +2n -3 +5df -6 +7n  file

I wonder: is this System V specific (we run SysVr2.1)?  Do you BSD users
have these options?

						Keith

--
Keith Waclena             University of Chicago Graduate Library School
                          1100 E. 57th Street, Chicago, Illinois   60637

                          ...ihnp4!gargoyle!sphinx!kdw1
#include    kdw1@sphinx.UChicago.{EDU,BITNET,MAILNET,CSNET}