手机
当前位置:查字典教程网 >脚本专栏 >linuxshell >Shell脚本实现检测文件是否被修改过代码分享
Shell脚本实现检测文件是否被修改过代码分享
摘要:#!/bin/bashfunmd5_1(){find/root/passwd-typef|xargsmd5sum>/tmp/funmd5_1...

#!/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脚本实例代码

shell监控脚本 准备工作分享

shell实现字符编码转换工具分享

shell 进度条实现代码

Shell脚本实现自动发送邮件的例子

Shell脚本实现把进程负载均衡到多核CPU中

Shell脚本判断IP地址是否合法的方法

Shell脚本实现的阳历转农历代码分享

Shell脚本实现批量下载网络图片代码分享

Shell脚本把文件从GBK转为UTF-8编码

精品推荐
分类导航