标签:echo style done lin nbsp 磁盘 span linux gre
#!/bin/bash total_disk=`df -k | grep -v Filesystem | awk ‘{print int($2)}‘` available_disk=`df -k | grep -v Filesystem | awk ‘{print int($4)}‘` total=0 available=0 for t in $total_disk do total=$((total+t)); done for a in $available_disk do available=$((available+a)); done echo $total,$available
标签:echo style done lin nbsp 磁盘 span linux gre
原文地址:https://www.cnblogs.com/navysummer/p/10655834.html