96f2f6ddd9
Change-Id: Ibffab01bc835d380ca9f0c18521c8a6d808de761
17 lines
268 B
Python
Executable File
17 lines
268 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import csv
|
|
import sys
|
|
|
|
old = {}
|
|
new = {}
|
|
|
|
for row in csv.reader(open(sys.argv[1])):
|
|
old[row[0]] = row
|
|
|
|
writer = csv.writer(open(sys.argv[3], 'w'))
|
|
for row in csv.reader(open(sys.argv[2])):
|
|
if row[0] not in old:
|
|
writer.writerow(row)
|
|
|