From: pjfarley AT banet DOT net (Peter J. Farley III) Newsgroups: comp.os.msdos.djgpp Subject: Re: sort -u problem/question Date: Tue, 14 Jul 1998 03:56:55 GMT Message-ID: <35aad57c.287255@news1.banet.net> References: <35aab37b DOT 8000330 AT news1 DOT banet DOT net> NNTP-Posting-Host: 32.100.112.24 Organization: IBM.NET Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk pjfarley AT banet DOT net (Peter J. Farley III) wrote: >Command and sample output used to sort on fields 3 and 6 with -u, tab >specified as field separator: > >C:\stest>sort +2 +5 -t \t -u sortuniq.tst >field1 field2 field3 9 field3 field4 field5 field6/9 field7 Followup to my own post: I also re-read the info page on sort, and after managing to understand keys a little better, decided to try the POSIX key specification instead, with the same results as before: C:\stest>sort -t \t -k 3,3 -k 6,6 -u sortuniq.tst field1 field2 field3 9 field3 field4 field5 field6/9 field7 I also tried this on Caldera OpenLinux Lite V1.2, with identical results, so I suspect I'm not understanding something basic here. Again, TIA for any help or assistance you can provide. ---------------------------------------------------- Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR pjfarley AT nospam DOT banet DOT net)