- 论坛徽章:
- 0
|
一个文件中每个段落以WHBSC开头,段落间以空行间隔,每个段落的行数不定
问题:将每个段落的行数均改为8,即统计每个段落的行数,如果段落的行数小于8则以空行补足至8行,原始文件见下,请各位大佬帮忙
WHBSC21;2011-2 -26 04:00:00;2011-2 -26 04:08:00;*** ALARM 408 A2/APZ "WHBSC21R1207B/C"U 110226 0400
AP SYSTEM ANALYSIS
AP APNAME NODE NODENAME
1 BSC21AP1C B BSC21AP1B
OBJECT COUNTER INSTANCE LIMIT VALUE
Memory Available Bytes
WHBSC21;2011-2 -26 20:47:00;2011-2 -26 20:51:00;*** ALARM 186 A2/APZ "WHBSC21R1207B/C"U 110226 2047
AP SYSTEM ANALYSIS
AP APNAME NODE NODENAME
1 BSC21AP1C B BSC21AP1B
OBJECT COUNTER INSTANCE LIMIT VALUE
Memory Available Bytes
WHBSC21;2011-2 -27 01:53:00;2011-2 -27 01:57:00;*** ALARM 800 A2/APZ "WHBSC21R1207B/C"U 110227 0153
AP SYSTEM ANALYSIS
AP APNAME NODE NODENAME
1 BSC21AP1C B BSC21AP1B
OBJECT COUNTER INSTANCE LIMIT VALUE
Memory Available Bytes
WHBSC21;2011-2 -27 04:03:00;2011-2 -27 04:17:00;*** ALARM 810 A2/APZ "WHBSC21R1207B/C"U 110227 0403
AP SYSTEM ANALYSIS
AP APNAME NODE NODENAME
1 BSC21AP1C B BSC21AP1B
OBJECT COUNTER INSTANCE LIMIT VALUE
Memory Available Bytes
WHBSC21;2011-2 -27 09:07:00;2011-2 -27 09:07:00;*** ALARM 835 A2/APT "WHBSC21R1207B/C"U 110227 0907
SWITCHING NETWORK TERMINAL FAULT
SNT TCASE STATE FCODE SUBSNT INFO FCINFO
ETM2-5
*** TIMEOUT, NO REPLY FROM SNTMC |
|