Skip to content

Instantly share code, notes, and snippets.

@auxiliary-character
Created September 22, 2013 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auxiliary-character/6656465 to your computer and use it in GitHub Desktop.
Save auxiliary-character/6656465 to your computer and use it in GitHub Desktop.
#!/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