Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: a one-liner for this trivial problem?

by space_monk (Chaplain)
on Apr 17, 2013 at 04:22 UTC ( #1029047=note: print w/ replies, xml ) Need Help??


in reply to Re: a one-liner for this trivial problem?
in thread a one-liner for this trivial problem?

Good idea, but removing the hard coding of file names perhaps gives....

perl -ne " $ARGV eq $ARGV[0] ? $h{$_}++ : $h{$_} ? 0 : print; " small.txt large.txt
A Monk aims to give answers to those who have none, and to learn from those who know more.


Comment on Re^2: a one-liner for this trivial problem?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-08 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls