Re: uniq without sort <-------------- GURU NEEDED
am 25.01.2008 17:22:35 von pjacklamgnuist006@gmail.com wrote:
> I want uniq without sorting the initial order.
echo -e "a\nc\nd\nb\nc\nd" | perl -nle 'print unless $seen{$_}++'
outputs
a
c
d
b
Peter
--
~/.signature: No such file or directory