将执行 md5 检查的脚本或应用程序
是否有一个程序或脚本可以比较我尝试创建自己的文件的 md5 校验和,但我对其中包含空格的任何文件都遇到问题,所以我想知道是否可以只需使用一个应用程序就更容易。 md5deep 是我下载的返回校验和的东西。
rm md5mastervalue
for i in `ls /media/disk`; do md5deep -rb /media/disk/$i >> md5mastervalue; done
for d in 1 3 ; do cp -rf /media/disk/ /media/disk-$d & done
wait
rm md5valuet1
rm md5valuet3
for k in `ls /media/disk`
do
for f in 1 3; do md5deep -rb /media/disk-$f/$k >> md5valuet$f; done
done
for n in 1 3; do diff md5mastervalue md5valuet$n; done
echo Finished
Is there a program, or a script out there that can compare the md5 checksum of files I tried to create my own, but i'm having problems with any files that have a space in them, so I was wondering if it'd be easier to just use an application. md5deep is something I downloaded that returns the checksum.
rm md5mastervalue
for i in `ls /media/disk`; do md5deep -rb /media/disk/$i >> md5mastervalue; done
for d in 1 3 ; do cp -rf /media/disk/ /media/disk-$d & done
wait
rm md5valuet1
rm md5valuet3
for k in `ls /media/disk`
do
for f in 1 3; do md5deep -rb /media/disk-$f/$k >> md5valuet$f; done
done
for n in 1 3; do diff md5mastervalue md5valuet$n; done
echo Finished
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你在Linux上吗?如果是这样,您可以使用
md5sum
或sha512sum
(更好的安全性)。例如,创建文件的基线,然后下次要检查时,只需使用
-c
选项,例如are you on linux? if so, you can use
md5sum
, orsha512sum
(better security). Example, create a base line of your filesthen, the next time you want to check, just use
-c
option, eg