Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经尝试了我所有的想法。@if ( md5sum foto.jpg= md5sum fot.jpg);然后回显 "OK"; 否则“失败”;菲; 如果您有任何想法,请帮助我
md5sum foto.jpg
md5sum fot.jpg
只比较文件怎么样,跳过校验和的所有摆弄。
@if cmp foto.jpg fot.jpg >/dev/null; then echo OK; else echo FAIL; exit 1; fi