# Last edited on 2024-11-14 01:13:00 by stolfi COMPARING MANAUS AND BAIKAL VERSIONS Comparing the "baikal" and "manaus" versions of ~/programs/c (including ~/programs_big/c) priot to a rsync of the directory. On manaus: cd ~/programs/c find_all_files_cksum_size_date.sh ./ > all-files-programs-c-manaus-2024-11-13.csdf & On baikal: cd ~/programs/c find_all_files_cksum_size_date.sh ./ big/ > all-files-programs-c-baikal-2024-11-13.csdf & rsync -avzu ${SMAN}:programs/c/all-files-programs-c-manaus-2024-11-13.csdf ./ & Removing the "big/" prefix: for m in baikal manaus ; do cat all-files-programs-c-${m}-2024-11-13.csdf \ | sed 's: big/: :g' \ | sort | uniq \ > .all-${m}.csdf wc -l .all-${m}.csdf done Comparing file lists: for mo in manaus:2-1 baikal:1-2 ; do m="${mo/:*/}" o="${mo/*:/}" bool ${o} .all-{baikal,manaus}.csdf \ | egrep -v -e '/(JUNK|SAVE|out)|[~]$|[.](o|ho|a)$|Deps.make|/[.]git|/[.]svn' \ | sort -k4 \ > .only-${m}.csdf wc -l .only-${m}.csdf done Comparing file NAME lists (excluding binaries): for m in baikal manaus ; do cat .only-${m}.csdf \ | gawk '//{ print $4 }' \ | fgrep -v -f binaries.dir \ | sort | uniq > .only-${m}-files.dir wc -l .only-${m}-files.dir done Comparing directories: for m in baikal manaus ; do cat .all-${m}.csdf \ | gawk '//{ print $4 }' \ | egrep -v -e '/(JUNK|SAVE|out)|[~]$|[.](o|ho|a)$|Deps.make|/[.]git|/[.]svn' \ | egrep -e '[/]' \ | sed -e 's:/[^/]*$::g' \ | sort | uniq \ > .all-${m}-dirs.dir wc -l .all-${m}-dirs.dir done for mo in manaus:2-1 baikal:1-2 ; do m="${mo/:*/}" o="${mo/*:/}" bool ${o} .all-{baikal,manaus}-dirs.dir \ > .only-${m}-dirs.dir wc -l .only-${m}-dirs.dir done