Davide Brini wrote:
> Bob Proulx wrote:
> >   perl -lne 'print $_ if ! defined $a{$_}; $a{$_}=$_;'
> 
> While we're at it, this is the typical awk way to do that:
> 
> awk '!a[$0]++'

I like it!  I will definitely be using that awk idiom in the future.
It is simple and concise.

Bob



Reply via email to