[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: sort -u produces incorrect output
From: |
Bailey, Scott |
Subject: |
RE: sort -u produces incorrect output |
Date: |
Fri, 25 Aug 2006 09:20:39 -0400 |
>"A missing field_end shall mean the last character of the line."
>Therefore, your key consists of the entire line, and sort is doing
>exactly what you told it to do.
>
>Perhaps you meant:
># sort -u -k1,1 -s x.x
>
>to limit the key to just the first field?
Duh, you are exactly correct. (And so is sort...) I wonder how
many screwed up key specifiers I have accumulated through years
of clueless misuse? :-)
Thanks, and have a good weekend,
Scott