shell(一)

来源:互联网 发布:淘宝卖家陈曦 编辑:程序博客网 时间:2024/05/22 01:45
#!/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
0 0