David Kastrup wrote: > Hi, > > if one calls sort -u with -k fields or other things that can make > unequal files compare as equal, sort always keeps the first of all > lines that are considered equal. > > If one is compressing the information of some data gathering process, > usually the last line is the one which one wants to keep. > > It would be nice if there was an additional option to sort that could > provide this behavior.
This is way to specific to be adding to sort IMHO. It it was to be added anywhere it would be "uniq" when it get's support for -k field specifications. > While one can do this by writing > > tac | sort -u ... > > this is not really elegant. Looks elegant to me. Pádraig. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils