Re: uniq without sort <-------------- GURU NEEDED
am 25.01.2008 06:55:43 von Cyrus Kriticosgnuist006@gmail.com wrote:
>
> I want uniq without sorting the initial order.
$ echo -e "a\nc\nd\nb\nc\nd" | cat -n | sort -k 2 | uniq -f 1 | sort -k 1,1
-n | cut -b 8-
a
c
d
b
--
Best regards | Be nice to America or they'll bring democracy to
Cyrus | your country.