当然是用牛逼的cut 啊 info='abcd;efgh'fstr=`echo $info | cut -d \; -f 1`sstr=`echo $info | cut -d \; -f 2`echo $fstr