Shell脚本实现检测文件是否被修改过代码分享
#!/bin/bashfunmd5_1() {find /root/passwd -type f | xargs md5sum > /tmp/funmd5_1.log}funmd5_2() {find /root/passwd -type f | xargs md5sum > /tmp/funmd5_2.log}if [ ! -f /tmp/funmd5_1.log ];thenfunmd5_1fifunmd5_2diff /tmp/funmd...