用于解析大型文本文件的脚本,从行到列

时间:2014-07-25 05:45:37

标签: parsing

我想要任何编程语言的解析脚本/代码解决方案。

文件太大,无法在Excel中打开。

问题:

我有大文本文件(300MB),如下所示:

[0] 2014 Jul 23  08:15:16.675  

   Current SFN               = 604
   Current Subframe Number   = 3
   Is Restricted             = false
   Cell Timing[0]            = 298955

[1]  2014 Jul 24  08:15:16.675  

   Current SFN               = 605
   Current Subframe Number   = 4
   Is Restricted             = false
   Cell Timing[0]            = 298900

[2] 2014 Jul 25  08:15:16.675  

   Current SFN               = 700
   Current Subframe Number   = 7
   Is Restricted             = false
   Cell Timing[0]            = 39025

通缉输出:

5列(日期,当前SFN,当前子帧号,受限制,单元时序[0])

Date     Current SFN     Current Subframe Number       Is Restricted     Cell Timing[0]
2014 Jul 23  08:15:16.675   604 3   TRUE    298955
2014 Jul 24  08:15:16.675   605 4   FALSE   298900
2014 Jul 25  08:15:16.675   700 7   FALSE   39025

0 个答案:

没有答案