问题描述
我有一个文本文件,其中包含许多电源数据。我要提取一个看起来像这样的部分:
scan 170110 fission power at tpd 220635.7 total power 107.127
Triad3PC-ScanPower v1.1.1.1 ld=2007-03-27
--------------------------------------------------------------------------------------------------
burnup type: measbu lattice split: on discontinuity factors: normal
--------------------------------------------------------------------------------------------------
y z a b c d e f g h j k l m n o p q r s t
34 ... 34
33 ... ... ... ... 33
32 ... ... ... ... ... 32
31 ... ... ... ... ... ... 31
30 ... ... ... ... ... ... ... 30
29 ... ... 1.280 1.393 1.232 ... ... ... 29
28 ... 0.597 1.390 ... 1.289 ... ... 28
27 ... 0.534 1.113 ... ... ... ... ... 27
26 ... ... 1.536 ... ... 0.706 ... ... ... 26
25 ... ... 1.207 1.128 ... ... 0.784 ... ... ... 25
24 ... ... ... 0.791 0.831 ... ... 0.733 ... 24
23 ... ... ... ... ... 1.069 ... ... 1.226 ... 23
22 ... ... ... 0.945 1.204 0.841 ... 0.687 ... 22
21 ... ... 1.352 ... 0.826 ... ... 1.134 1.383 ... 21
20 ... ... ... 2.246 ... 1.639 1.316 ... ... ... ... 20
19 ... 1.214 0.953 1.551 1.434 ... 1.229 1.048 ... ... 19
18 ... ... 1.256 0.824 ... ... 1.151 1.132 ... 1.552 ... 18
17 ... 0.701 1.311 ... 1.796 1.492 ... 2.365 1.101 ... 17
16 ... ... ... ... ... ... ... 0.970 1.042 1.467 ... 16
15 ... 1.234 ... 0.863 1.574 ... 1.050 0.923 ... ... 15
14 ... ... ... ... ... 1.642 1.571 ... 1.090 1.473 ... 14
13 ... ... 1.062 1.266 1.679 1.599 0.814 ... 1.506 ... 13
12 ... ... 1.430 ... ... ... ... ... ... ... ... 12
11 ... ... 0.978 ... 1.342 1.375 ... ... 1.318 ... 11
10 ... ... ... 0.963 ... 1.066 ... 0.783 0.480 10
9 ... 1.056 ... 1.291 ... ... 0.595 ... 0.145 ... 9
8 ... 1.230 ... ... 0.760 ... ... ... ... 8
7 ... ... 1.313 ... 0.907 ... 0.762 1.534 ... ... 7
6 ... ... 1.306 ... ... ... 1.292 ... ... 6
5 ... ... 1.012 0.818 ... ... ... ... 5
4 ... ... 1.252 ... 1.299 ... ... 4
3 ... ... ... 1.221 1.145 1.109 ... ... 3
2 ... ... ... ... ... ... ... 2
1 ... ... ... ... ... ... 1
0 ... ... ... ... ... 0
-1 ... ... ... ... -1
-2 ... -2
y z a b c d e f g h j k l m n o p q r s t
我的sed命令是:
sed -n '/fission power at tpd/,/ y z a b c/ { p; }' s.171012.so.power.info
但是sed最终停止在“ y z a b c”的第一个实例处
scan 171012 fission power at tpd 239802.1 total power 109.976
Triad3PC-ScanPower v1.1.1.1 ld=2007-03-27
--------------------------------------------------------------------------------------------------
burnup type: measbu lattice split: on discontinuity factors: normal
--------------------------------------------------------------------------------------------------
y z a b c d e f g h j k l m n o p q r s t
我希望它在地图底部的第二个实例处停止。我如何告诉它做到这一点?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)