shell(一)
2016-05-23 22:45
369 查看
#!/bin/bash
rate=$(df -h |grep /dev/sda3 |awk '{print $5}' |cut -d "%" -f1)
if [ $rate -ge 10 ]
then
echo "/dev/sda5 is full !!!"
fi
rate=$(df -h |grep /dev/sda3 |awk '{print $5}' |cut -d "%" -f1)
if [ $rate -ge 10 ]
then
echo "/dev/sda5 is full !!!"
fi
相关文章推荐
- bash:ll命令未找到问题
- bash扩展
- shell通配符
- go语言exec包调用shell命令
- Linux下配login.sql,并在.bash_profile中配置SQLPATH
- bash 数组
- bash shell总结
- 故障案例--mongo shell从库无法读的处理方法
- 【转】深入浅出ShellExecute
- Associate File Extension with Shell OPEN command and Application(转)
- 笔记整理之 SHELL 变量
- shell元字符
- 创建交互式shell脚本对话框
- shell 基本命令
- shell字符串判空
- anr日志
- Shell 命令 find 的常见用法
- Linux-Shell脚本的运行方式
- Android 应用程序发送shell命令
- Shell