>> > sort -t, -k 5 | sed 's/,/ /g' | uniq -f4 -w13
> $ sort -t"," -k5,5 -u input_file
Hmmm, my manpage only listed -k=POS . Is -k=POS1[,POS2] a recent
addition ? Doesn't really matter, that machine got blown away last night
for a full upgrade anyway, so the new(er) version of sort will be
available
-k, --key=POS1[,POS2]
start a key at POS1, end it at POS 2 (origin 1)
New enough sort(1) that the old zero-based key specification does not
work at all. Version previous to that, it was deprecated. But even
then, there was $ sort +pos1 -pos2
to start at field pos1 and end at field pos2.
Yep, my new machine has this sort with start,end keys
--
Michael O'Keefe | [EMAIL PROTECTED]
Live on and Ride a 03 BMW F650GSDakar| [EMAIL PROTECTED] / |
I like less more or less less than |Work:+1 858 845 3514 / |
more. UNIX-live it,love it,fork() it |Fax :+1 858 845 2652 /_p_|
My views are MINE ALONE, blah, blah, |Home:+1 760 788 1296 \`O'|
blah, yackety yack - don't come back |Fax :+1 858 _/_\|_,
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie