awk判断根分区磁盘使用量:::
df / |grep / |awk '{if($4<15000000)print "根分区磁盘可用量低于15G了";else print "磁盘可用量还行"}'
awk判断/boot分区磁盘使用量:::
[root@localhost ~]# df |grep /boot| awk '{if($4<140000)print "false";else print "ok"}'
ok
[root@localhost ~]# df |grep /boot| awk '{if($4<900000)print "false";else print "ok"}'
false