bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feature request for sort -u -k ...


From: David Kastrup
Subject: Feature request for sort -u -k ...
Date: Sun, 26 Nov 2006 17:32:24 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]