Re: uniq without sort <-------------- GURU NEEDED

Re: uniq without sort <-------------- GURU NEEDED

am 25.01.2008 06:13:22 von Cyrus Kriticos

gnuist006@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
| cut -b 8-
a
c
d
b

--
Best regards | Be nice to America or they'll bring democracy to
Cyrus | your country.