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.
While one can do this by writing
tac | sort -u ...
this is not really elegant.
Thanks,
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum