随笔分类 -  shell编程

摘要:1 #!/bin/bash2 3 rate=$(df -h |grep /dev/sda3 | awk '{print $5}' | cut -d "%" -f1)4 5 if [ $rate -ge 10 ]6 then7 echo "Warning! /dev/sda3 is... 阅读全文
posted @ 2015-10-10 18:25 村头王师傅 阅读(3821) 评论(0) 推荐(2)