You could just use the standard diff
tool with some scripting.
For the two examples files, plain diff
will output:
4c4,6 < 1004, Erin --- > 1003, Dolores > 1004, Edward
The <
means "line removed", the >
"line added". Just filter for >
to get all lines that are in the second file, but not in the first:
$ diff a.csv b.csv |grep '>'|cut -c 3- 1003, Dolores 1004, Edward
(the cut
part filtes out the leading >
). You could put that into a script.
Note: The above assumes you have diff
, grep
& cut
installed. They're standard on Linux and Mac OS X (I believe); for Windows you'd need Cygwin or similiar.