哪位朋友现在有空帮我写一下shell,数据如下. 要取出没一行中的这些数据,如: "1436842,YXPK,106618001,13906652701,08370610576127821850,-1,MK:0008
"
逗号为分割,保存为excle文档
数据:
084222|G100|MT1发送给5g状态报告是:1436842,YXPK,106618001,13906652701,08370610576127821850,-1,MK:0008
084222|G100|MT1发送给5g成功!
084223|G100|接受返回包错误!
084223|G100|MT2队列size()=5
084223|G100|MT2发送给5g状态报告是:1436831,YXPK,106618001,13566947113,08353210576127821395,1,DELIVRD
084223|G100|MT2发送给5g成功!
084224|G100|MT2状态返回值是:1
084224|G100|MT2更新Id=1436831记录成功!
084224|G100|MT2队列size()=5
084224|G100|MT2发送给5g状态报告是:1436832,YXPK,106618001,13587745316,08353219307137825872,1,DELIVRD
或者是这样的数据:
功!
1456263,YXPK,106618001,15868686140,11262911747178859055,1,DELIVRD
功!
1456267,YXPK,106618001,13575792264,11235122125188895378,1,DELIVRD
功!
1456264,YXPK,106618001,15869587936,11371419307137882562,1,DELIVRD
功!
有空行,有中文.但只要数字这一行,并以逗号为分割保存为xls文档
[ 本帖最后由 zjsyzsj 于 2009-11-19 11:57 编辑 ] |