[OT] Re: remove duplicate lines



Am Freitag, 27. Mai 2005 23.31 schrieb Eric Walker:
> On Friday 27 May 2005 01:22 pm, John Doe wrote:
> > Am Freitag, 27. Mai 2005 17.15 schrieb Eric Walker:
> > > Can't you run uniq from the command prompt to get rid of the duplicate
> > > lines?
> > >
> > > perlnewbie..
> >
> > [...]
> >
> > Yes I can,
> >
> > $ cat marc21textfile | uniq > outputfile
> >
> > but the OP explicitly wanted a perl script and states
> >
> > > For now, I just want to remove adjacent duplicate fields.
> >
> > from which I concluded that he wants to elaborate the script further,
> >
> > and as a perlnewbie on a perl list I try to answer perl questions.
> >
> > thanks,
> > joe
>
> Ok,
> the perlnewbie tag is for me, not you. Seems like you got upset. sorry for
> the misunderstanding..
>
> perlnewbie....

Oups - I have to be sorry for my misunderstanding.

Your solution is of course better for the problem "how to remove duplicate
lines".

sorry again,

joe
.



Relevant Pages

  • Parsing problem
    ... With the little amount of Perl that I know, I have come to a dilemma. ... do not know how to parse this file so in column 1 is the number ... column to duplicate itself for every item. ... before the parser. ...
    (perl.beginners)
  • Re: Scanning @array elements for similair content
    ... > the Perl newsgroup you know. ... duplicate array entires but didn't know what to do when I wanted to match ... duplicate entries and it does do it's job: ... right now, when the script is run, it prints to screen all remain ...
    (comp.lang.perl.misc)
  • Re: remove duplicate lines
    ... > Can't you run uniq from the command prompt to get rid of the duplicate ... but the OP explicitly wanted a perl script and states ... I just want to remove adjacent duplicate fields. ... and as a perlnewbie on a perl list I try to answer perl questions. ...
    (perl.beginners)
  • Re: remove duplicate lines
    ... > but the OP explicitly wanted a perl script and states ... I just want to remove adjacent duplicate fields. ... > and as a perlnewbie on a perl list I try to answer perl questions. ... the perlnewbie tag is for me, ...
    (perl.beginners)
  • Re: Perldoc versus Man
    ... >> it were written in perl!)) ... > Shouldn't be too hard to duplicate using Tk. ... I seem to recall that ... > but that's not a standalone program. ...
    (comp.lang.perl.misc)