Re: [Tutor] output sequentially

2011-07-27 Thread Peter Otten
lina wrote: I have below file, I wish the output following: The first field 169 -170 sequential, and then the filed 2 from 1-29, ignore the rest 4 fields, 169CHOL O28 1612 6.966 6.060 6.429 Read the lines from the file, sort them with a proper key function, write the

[Tutor] output sequentially

2011-07-26 Thread lina
Hi, I have below file, I wish the output following: The first field 169 -170 sequential, and then the filed 2 from 1-29, ignore the rest 4 fields, thanks for any suggestions, 169CHOL H29 1611 6.963 6.155 6.395 169CHOL O28 1612 6.966 6.060 6.429 169CHOLC3 1613 7.005