0514-86177077
9:00-17:00(工作日)
#!/bin/bash funmd5_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 ];then funmd5_1 fi funmd5_2 diff /tmp/funmd5_1.log /tmp/funmd5_2.log > /tmp/diff.log Status=$? if [ $Status = 0 ];then exit else echo "文件修改过了!" fi
标签:通辽 青岛 南充 随州 朝阳 延边 西藏 雅安
上一篇:Shell脚本实现批量下载网络图片代码分享
下一篇:Shell脚本数组用法小结