终端执行for循环

i=0;for j in `df |grep dc|awk '{print $2}'`; do i=`expr $i + $j`; done;echo $i

原文地址:https://www.cnblogs.com/tiantianhappy/p/13085667.html