我有一个具有以下结构的文本:
LINE LINK DEFINITION NUMBER 337 ID = 44015945
SPW. NB. SPW. ID. LENGTH ELEM. MAT-ID X Y Z NODES
673 673.00 .357E+01 44013671 4400341 0.323E+03-0.448E+03 0.485E+03 44020544
44002527 4400331 0.326E+03-0.450E+03 0.484E+03 44020545
1502 673.01 .558E+01 44013671 4400341 0.323E+03-0.451E+03 0.485E+03 44022202
44002527 4400331 0.329E+03-0.450E+03 0.484E+03 44022203
674 674.00 .355E+01 44013671 4400341 0.323E+03-0.448E+03 0.480E+03 44020546
44002516 4400331 0.325E+03-0.450E+03 0.479E+03 44020547
1503 674.01 .561E+01 44013671 4400341 0.323E+03-0.451E+03 0.480E+03 44022204
44002516 4400331 0.328E+03-0.450E+03 0.479E+03 44022205
现在我想在一个新文件中只写入那些行,其中包含行上给定位置的数字 - 例如以下行:
676 676.00 .355E+01 44007503 4400341 0.322E+03-0.448E+03 0.475E+03 44020550
44002516 4400331 0.325E+03-0.450E+03 0.474E+03 44020551
任何想法将不胜感激。谢谢