[NTLUG:Discuss] Sort ?

Kyle_Davenport@compusa.com Kyle_Davenport at compusa.com
Wed Aug 11 16:22:20 CDT 1999


I could have just said RTFM.   Of course it doesn't have to be "sort", but since
"sort -k1r -k2" will do the job...





MadHat <madhat at unspecific.com> on 08/11/99 02:22:27 PM

Please respond to discuss at ntlug.org

To:   discuss at ntlug.org
cc:    (bcc: Kyle Davenport/Is/Corporate/CompUSA)
Subject:  Re: [NTLUG:Discuss] Sort ?





Maybe I am stupid, but I had to reread this a couple of times to see he
was talking about the man page for 'sort'.  I am not sure if the
origional message was asking about the sort command specifically or
not.

Kyle_Davenport at compusa.com wrote:
>
> Yes.  From the man page:
>  "A  +pos  or  -pos argument may also have any of the option
>        letters Mbdfinr appended to it, in which case  the  global
>        ordering  options  are not used for that particular field."
>
> S Jackson <sjackson at stratmarkcorp.com> on 08/11/99 12:59:24 PM
>
> This may be a General Unix question, but is it possible to sort a file
> and sort forward on one field, and reverse on another at the same time?
> I hope that question made sense. Thanx
>
> Jackson

--
MadHat

_______________________________________________
http://ntlug.org/mailman/listinfo/discuss










More information about the Discuss mailing list