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

Re: sort



   PERFECT!!!!
   simple, one line, and works fine!!!


  Thanks


On Wed, 2002-05-29 at 00:56, Dave Carrigan wrote:
> O Senhor <osenhor@uol.com.br> writes:
> 
> >   How can i delete equal lines from a file, without sort it?
> >   If i use sort -u, the command clean up the repeat lines, but sort my
> > file (ascendent). I don't want this. I need my file in original form.
> 
> perl -ne 'print unless $lines{$_}++' filename
> 
> -- 
> Dave Carrigan (dave@rudedog.org)            | Yow! ...I think I'm having an
> UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | overnight sensation right now!!
> Seattle, WA, USA                            | 
> http://www.rudedog.org/                     | 
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 
> 
> 
-- 
-----------------------------------------------------------------
thesirbr                                      O Senhor do Brasil.
-----------------------------------------------------------------


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: