find dirname1 -type f -exec md5sum {} + | awk '{print $1}' | sort | md5sum find dirname2 -type f -exec md5sum {} + | awk '{print $1}' | sort | md5sum
如果值不一样
分别进入两个目录中
for i in `ls`; do echo $i ; find $i -type f -exec md5sum {} + | awk '{print $1}' | sort | md5sum ; done
Leave a Reply