system-config/tools/atc/diff.py
James E. Blair 96f2f6ddd9 Initial checkin of ATC scripts
Change-Id: Ibffab01bc835d380ca9f0c18521c8a6d808de761
2013-09-24 09:34:10 -07:00

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)