原帖由 "红袖添香" 发表: ... bsize=`ls -l YOURFILE | awk '{if ($5/1024^3 > 1) print "true"; else print "false" }'` 然后再你的程序中判断 bsize 是 true 还是 false