Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Balancing Coding Time And Code Quality

by waswas-fng (Curate)
on Dec 04, 2003 at 00:48 UTC ( [id://312063]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Balancing Coding Time And Code Quality
in thread Balancing Coding Time And Code Quality

man comm

comm -2 -3 master slave >unique_to_master comm -1 -3 master slave >unique_to_slave comm -1 -2 master slave >union_master_slave


-Waswas

Replies are listed 'Best First'.
Re: Re: Re: Re: Balancing Coding Time And Code Quality
by Limbic~Region (Chancellor) on Dec 04, 2003 at 01:07 UTC
    waswas-fng,
    Cool! I am not sure how I missed this. So as long as both files are sorted, comm will be 100% correct no matter how divergent the two servers are?

    I will have to try it.

    Cheers - L~R

      Yes, I have used it much over the years. pre sorted lists are 100%.


      -Waswas


      Edited to add: the only exception is on some OSes where they do not support largefiles and the input files are larger than 2gb. Whats even cooler about it is that uoi can pipe comms together and test for in file one and two but not three etc. comm is nice.
Re: Re: Re: Re: Balancing Coding Time And Code Quality
by RMGir (Prior) on Dec 04, 2003 at 14:10 UTC
    Nice, thanks!

    But isn't the 3rd line be the intersection and not the union?

    comm -1 -2 master slave >intersection_master_slave

    Mike

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-19 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found