*BSD News Article 68344


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!imci2!news.internetMCI.com!newsfeed.internetmci.com!uwm.edu!math.ohio-state.edu!jussieu.fr!oleane!francenet.fr!itesec!keltia.frmug.fr.net!sidhe.frmug.fr.net!not-for-mail
From: roberto@keltia.freenix.fr (Ollivier Robert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Perl Script for finding duplication in a file.
Date: 10 May 1996 17:01:16 GMT
Organization: Herve Schauer Consultants
Lines: 14
Message-ID: <4mvsos$ops@sidhe.freenix.fr>
References: <4mm444$age@nadine.teleport.com>
NNTP-Posting-Host: localhost
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

 [courtesy cc of this posting sent to cited author via email]

In article <4mm444$age@nadine.teleport.com>,
Blake Swensen <blake@pbgi.com> wrote:
> Anyone know of a perl script that will find and eradicate duplication in a 
> file

Duplication of what ? You've got to be more precise  if you want us to help
you. Your question would be best in comp.lang.perl.misc anyway. 

If you want only one copy of each line, use uniq(1).
-- 
Ollivier ROBERT  -=-=-  FreeBSD 2.x FAQ maintainer -=-=-  roberto@freebsd.org
-=-=-=-=-=- Support The Free UNIX Systems !  FreeBSD Linux NetBSD -=-=-=-=-=-