This shows you the differences between two versions of the page.
— |
info:script:compare_directories [2018-09-19 12:34] (current) andunix created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Compare directories ====== | ||
+ | For each of the directories, | ||
+ | |||
+ | <code bash> | ||
+ | find DIR -type f -exec shasum {} + | LC_ALL=C sort -d -k 2 > shasums.txt | ||
+ | </ | ||
+ | |||
+ | It's important to use '' | ||
+ | |||
+ | After that, you can diff the two shasums.txt: | ||
+ | |||
+ | <code bash> | ||
+ | diff shasums1.txt shasums2.txt | ||
+ | </ | ||
+ | |||
+ | Or you use Meld as graphical diff tool: | ||
+ | |||
+ | <code bash> | ||
+ | meld shasums1.txt shasums2.txt | ||
+ | </ | ||
+ | |||
+ | {{tags> |