du -m smallgame_2006* | awk '{sum += $1}; END{print sum}' -m代表单位是MB, awk命令需要'',且命令需换行 转载于:https://www.cnblogs.com/vanishfan/p/3170388.html