Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Detect common lines between two files, one liner from shell

by stephen (Priest)
on Dec 13, 2000 at 23:31 UTC ( #46465=note: print w/replies, xml ) Need Help??


in reply to Detect common lines between two files, one liner from shell

To add insult to injury, you could do this:
perl -ne '@foo[10]="print"; eval( $foo[ substr( ( $seen{$_} .= @ARGV), + -2)])' file1 file2
Adding just that extra bit of obscurity to make it completely byzantine...

stephen

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://46465]
help
Chatterbox?
[LanX]: shmem: ah I see ... you'll need to check if the monastery standard classes come with border ... like the nodelets should
[karlgoethebier]: shmem: you could have linked to jackass as well ;-)
[stonecolddevin]: morning all
[shmem]: karlgoethebier: better choice, done. :-)
Eily is a full
[Eily]: a fool >_<

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-07-24 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (356 votes). Check out past polls.