In other words, compare directory1(and subdirectories) with directory2(and subdirectories) and output the differences of each file to a 3rd directory(and subdirectories).
The directory structures are the same and it is assumed that the files contained within those (sub)directories have same names.
Code: Select all
directory1 directory2
|- subdir_1 |- subdir_1
|- file_1 |- file_1
|- .. |- ..
|- file_x |- file_x
|- |-
|- ... <========> |- ...
|- | |-
|- subdir_x | |- subdir_x
|- file_1 | |- file_1
|- .. | |- ..
|- file_x | |- file_x
|
|
(output in html)
|
|
\/
directory3
|- subdir_1
|- file_1.html
|- ..
|- file_x.html
|-
|- ...
|-
|- subdir_x
|- file_1.html
|- ..
|- file_x.html
I can get the output but all changes are logged to one file. I would like only files that have differences logged. I noticed as well that the HTML output is not always correct (“<” are picked up as tags) so the formatting of the HTML output is not quite accurate.
Hope u can help,
Thanx in advance,
Genx