Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re (tilly) 4: Detect common lines between two files, one liner from shell

by tilly (Archbishop)
on Mar 17, 2001 at 22:41 UTC ( #65170=note: print w/ replies, xml ) Need Help??


in reply to Re: Re (tilly) 2: Detect common lines between two files, one liner from shell
in thread Detect common lines between two files, one liner from shell

I refuse to repeat the documentation until you have at least tried to read it. That is why it is there and it is faster for both of us if you take advantage of it.

As for your additional question, the -n option is an implicit loop over the lines in both files. If you want to do words, then within each line you would need to loop over the words as well. But the same logic would work. (OTOH the algorithm will get rather inefficient. But oh well.)


Comment on Re (tilly) 4: Detect common lines between two files, one liner from shell

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://65170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2014-11-28 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls