Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by waswas-fng (Curate)
on Dec 04, 2003 at 00:48 UTC ( #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
Node Status?
node history
Node Type: note [id://312063]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-02-22 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (291 votes). Check out past polls.

    Notices?