Answers to: Compare two CSV fileshttp://linuxexchange.org/questions/3434/compare-two-csv-files<p>Hi, I have to compare two .csv files and get the output in other file in the given format.</p> <p>First column in provided files would be unique.</p> <p>If a new line is added I want A followed by "," and then followed by entire new row. If a line is modified I want C followed by "," and then followed by entire modified row. If a line is deleted I want D followed by "," and then followed by entire deleted row.</p> <p>File 1</p> <p>aa, bb, cc, dd, ee</p> <p>bb, ww, ee, tt, yy</p> <p>cc, vv, vv, vv, vv</p> <p>File 2 bb, ww, ee, tt, y1</p> <p>cc, vv, vv, vv, vv</p> <p>nn, bb, nn, cc, bb</p> <p>So output be like</p> <p>D, aa, bb, cc, dd, ee</p> <p>C, bb, ww, ee, tt, y1</p> <p>A, nn, bb, nn, cc, bb</p>enFri, 20 Jan 2017 12:06:47 -0000