Mail Archives: djgpp/1998/07/14/04:01:01
pjfarley AT banet DOT net (Peter J. Farley III) wrote:
<Snipped>
>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)
- Raw text -