Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Reconcile one list against another

by anonymized user 468275 (Curate)
on May 05, 2011 at 10:34 UTC ( [id://903113]=note: print w/replies, xml ) Need Help??

in reply to Reconcile one list against another

If you just want the lists of users to be added and deleted, it can be done in a few unix commands:
awk '{print $2}' < file1.txt | sort -u > file1.sor awk '{print $2}' < file2.txt | sort -u > file2.sor comm -13 file1.sor file2.sor > onlyIn2.sor comm -23 file1.sor file2.sor > onlyIn1.sor
and if you want accounts present in both, use comm -12 instead

One world, one people

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-06-17 14:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.