Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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


Comment on Re: Detect common lines between two files, one liner from shell
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-07-31 20:55 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 (282 votes), past polls