I have 2 CSV files that have 3 columns called ‘num,’date’ and ‘tex.
File1
num date tex 20170512 12/05/2017 15:39 1001 20170512 12/05/2017 15:39 1001 20170908 08/09/2017 02:42 1001 20170908 08/09/2017 06:30 1001 File 2
num date tex 201705332212 12/05/2017 15:39 1001 20170523212 12/05/2017 15:39 100156 2017232320908 08/09/2017 02:42 10012 20170908 08/09/2017 06:30 1001 desired output
diff.csv
num date tex 201705332212 12/05/2017 15:39 1001 20170523212 12/05/2017 15:39 100156 2017232320908 08/09/2017 02:42 10012 I want to match both columns ‘num’ and ‘tex’. currently the below code is just checks difference in the whole file and not against column 'num' and 'tex'. Ideally, i want if both columns ‘num’ and ‘tex’ is different I would like it to write it to the out.csv file.