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腳本數組用法小結
Copyright ? 1999-2012 誠信 合法 規(guī)范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8