Created
September 22, 2013 03:40
-
-
Save auxiliary-character/6656465 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import csv | |
import sys | |
firstdata = {} | |
with open(sys.argv[1],"r") as csvfile1: | |
reader1=csv.reader(csvfile1,delimiter=" ") | |
for line in reader1: | |
firstdata[line[4]]=line[2] | |
with open(sys.argv[2],"r") as csvfile2: | |
reader2=csv.reader(csvfile2,delimiter=" ") | |
for line in reader2: | |
if line[4] in firstdata: | |
if firstdata[line[4]] != line[2]: | |
print(line[4],":",line[2],"does not match",line[4],firstdata[line[4]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment