Re: remove duplicate lines
- From: krahnj@xxxxxxxxx (John W. Krahn)
- Date: Mon, 30 May 2005 07:41:43 -0700
Tielman Koekemoer (TNE) wrote:
Wow, I'm really confused. I'm trying to remove duplicate lines from a marc21 text file. I have spent countless hours searching for scripts etc.
I'm also very new to Perl and wrote a long and newbyish script that does exactly what the Unix command "sort FILENAME | uniq" does just to see how it can be done.
How long? Because you can do that on one line in perl. :-)
perl -e'print sort grep !$seen{$_}++, <>' FILENAMEJohn -- use Perl; program fulfillment .
- Follow-Ups:
- Re: remove duplicate lines
- From: Jay Savage
- Simple question
- From: Tony Marquis
- Re: remove duplicate lines
- References:
- RE: remove duplicate lines
- From: Tielman Koekemoer \
- RE: remove duplicate lines
- Prev by Date: Re: require "sys/socket.ph";
- Next by Date: Simple question
- Previous by thread: RE: remove duplicate lines
- Next by thread: Simple question
- Index(es):
Relevant Pages
|