|
|
要查找的文本内容片断:
Basic:
User access index : 854
State : Used
User name : zhangsan
User access status1 : OK
User access status2 : OK
User access PeVlan/CeVlan : 2112/1120
User-Group : -
AAA:
Action flag : Idle
Authen state : Authed
Author state : Idle
Basic:
User access index : 231
State : Used
User name : huangli
User access status1 : OK
User access status2 : OK
User access PeVlan/CeVlan : 2372/6490
User-Group : -
AAA:
Action flag : Idle
Authen state : Authed
Author state : Idle
Basic:
User access index : 251
State : Used
User name : liliang
User access status1 : OK
User access status2 : OK
User access PeVlan/CeVlan : 3111/2643
User-Group : -
AAA:
Action flag : Idle
Authen state : Authed
Author state : Idle
Basic:
User access index : 104
State : Used
User name : sunqian
User access status1 : OK
User access status2 : OK
User access PeVlan/CeVlan : 1128/3243
User-Group : -
AAA:
Action flag : Idle
Authen state : Authed
Author state : Idle
想要得到的结果(输出到csv表格文件):
zhangsan,2112/1120
huangli,2372/6490
liliang,3111/2643
sunqian,1128/3243
即:查找User name和User access PeVlan/CeVlan冒号后面的内容,成对输出(Basic和AAA块成对出现属于一个文本域)
小弟只能单行处理,资历较浅,无法成对输出,帮小弟一把,谢啦老大 |
评分
-
查看全部评分
|