I have two csv files with 5 fields where the seperator is a comma. I need to compare these files and get an output file with the information which lines are added, updated or deleted.
I have found several batch scripts that do a compare using the fc or comp function but that gives only the differences between the files. I didn’t find related topics can give the results about added, updated or deleted lines.
Can anybody help me with this?
This topic is interesting! Perhaps you, like me, find confusing and annoying the output format of FC command, although it provides the required information indeed. The Batch program below take the output of FC command and rearrange it in a way that allows to identify if a new block of information has been added between two lines of original file, or if a block of lines has been deleted from the original file, or any other case of file modification (updated). The most difficult part was to choose the format to display the information in a pleasant way, but I think my solution is pretty good!
Antonio