-1

how to compare two directories that contain xml files in perl..

and prints the content that is modified, added and deleted

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by gginnj
0

why not have perl first sort the files from each directory
first report any files in one that are not in other
and then any files in the other that are not in the first.
then with the files that are the same, one by one,
run 'diff' and capture the output for each file.

diff is made for that kinda thing!

diff also has the ability to compare directory vs directory.

GG

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.