linux shell脚本判断文件大小,超过一定大小发送邮件报警

如题所述

比如判断文件大于1M
if [ `ls -s file|awk '{print $1}'` -gt 1024 ];then
send email
fi
温馨提示:答案为网友推荐,仅供参考
相似回答