Suppose, I have a file called source.txt
which has the following data in it:
3LWXA 199 XRAY 1.100 0.12 0.14
3LX3A 180 XRAY 1.550 0.15 0.17
3LY0A 364 XRAY 1.399 0.17 0.19
3LYDA 161 XRAY 1.450 0.17 0.19
3LYEA 307 XRAY 1.300 0.13 0.17
3LYHB 126 XRAY 1.600 0.17 0.21
3LYPA 215 XRAY 1.600 0.18 0.21
3M07A 618 XRAY 1.400 0.15 0.17
3M0FA 213 XRAY 1.600 0.21 0.22
I want to extract {1st} and {1st, 2nd} columns from source.txt
and save them into one.txt
and two.txt
.
How can I do that?
N.B. I found this thread but that didn't help.