find dir1 dir2 -type f -print0 | xargs -0 md5sum >md5sums