标签:zabbix
dir () {
dir=$1
[ -d $dir ] || mkdir $dir
num=(`/usr/bin/du $dir -sk|awk ‘{print $1}‘|sed ‘s/[A-Z]//‘`)
m=$(echo "scale=3;$num/1024"|bc|awk ‘{printf "%.3f", $0}‘)
echo $m
}
dir $1
本文出自 “学习linux” 博客,请务必保留此出处http://10265013.blog.51cto.com/10255013/1768265
标签:zabbix
原文地址:http://10265013.blog.51cto.com/10255013/1768265