终端执行for循环

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

posted on 2020-06-10 15:46  狄成  阅读(385)  评论(0编辑  收藏  举报