Re: remove duplicate lines



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....


.



Relevant Pages

  • 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)
  • 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: perl script to read data from database and generate a mail in HTML(in a particular format)
    ... I want to write a perl script to read data from the database and ... I then searched and removed the duplicate names from the array entries. ...
    (comp.unix.programmer)
  • 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)