1、问题:数据查询结果,取出数字并加1。 方法: (感觉方法挺笨的) numa=`echo ${maxid}|egrep -o "[0-9]+"` num=`expr $((numa)) + 1 ` echo $num