Re: remove duplicate lines



Hello

As an addition to my last post:

Am Freitag, 27. Mai 2005 13.56 schrieb Jack Daniels (Butch):
> 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.
>
> What I find frustrating while trying to learn Perl, is that most solutions
> assume you know what to do.

I think this is nothing special; if somebody has coded a _solution_, he
(hopefully) knows what he has done.

To learn perl, you have to spend hours and hours studying books/docs/examples,
thinking, trying etc.

> For example, someone gives the code to find and replace, and that's it.

Generally, as preciser a question is formulated, as bigger the chance that the
answer is precise too. If you have the luck to get an answer from a guru (I'm
not a guru), he will point you to good resources for learning.

> In other words, if the complete script was there, I think I could learn much
faster.

On the other side, it can hinder from learning, since one can simply _run_ the
script without even trying to understand it.

> I have no idea of how to put the code into a script.

If you have searched for scripts, and found at least one, you already have an
example how to put code into a script.

[...]

[snip example data]

kind regards, joe
.



Relevant Pages

  • Re: iptables question
    ... > You can add a refinement such as `-p tcp' which would only drop tcp ... I can use it as a model for further learning. ... > May I gratuitously plug my own firewall starter script? ... > rate-limiting on outgoing UDP and ICMP packets. ...
    (comp.os.linux.security)
  • Re: Help finding a PHP Script
    ... but then where would the learning come in? ... An ideal script would allow ... I don't know what languages you ... slightly different syntax and a quick google search will find you almost ...
    (comp.lang.php)
  • Re: Tom and the new pigman
    ... The script seems to have been suggesting that he has occasional lapses of concentration, and it's all been spelled out rather carefully. ... Eventually someone will explain that he has a Learning Difficulty or something, whereas we can see that learning isn't the issue, he's just not very bright and not capable of making sensible judgements. ...
    (uk.media.radio.archers)
  • Re: Tom and the new pigman
    ... The script seems to have been suggesting that he has occasional lapses of concentration, and it's all been spelled out rather carefully. ... Eventually someone will explain that he has a Learning Difficulty or something, whereas we can see that learning isn't the issue, he's just not very bright and not capable of making sensible judgements. ...
    (uk.media.radio.archers)
  • Re: remove duplicate lines
    ... Can't you run uniq from the command prompt to get rid of the duplicate lines? ... > guru, he will point you to good resources for learning. ... > the script without even trying to understand it. ...
    (perl.beginners)