I have a CSV file with the following format:
"SHA-1","MD5","CRC32","FileName","FileSize","ProductCode","OpSystemCode"
Basically what I'm looking to do in Python 2.x is read the file and if within the filename column, any files exist with a specified file extension from a list, the data from the MD5 hash column is parsed out into a text document.
So my pseudo code is looking like this:
list = [.doc,.xls,.ppt]
with open(new.csv) as new_f:
with open(x.csv) as old_f:
x = f.readlines()
if list in x:
# *copy out the value from the MD5 value column to new.csv*
I just don't know how to extract the MD5 hash.
Any suggestions?