Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found