I have an input file of which a sample is:
8101010447 25.09 40n50.76 15e06.74 4.96 999 ----- 0.2388 314 6.90 99.00 60 6 81EV00001
8101010929 23.85 42n47.96 12e47.90 8.90 3.0 MCSTI 0.0917 123 0.60 2.80 47 16 81EV00002
8101011100 14.41 40n52.23 15e20.57 7.34 999 ----- 0.7021 123 0.40 1.30 67 11 81EV00003
and I need to get the last and fourth columns. I am using awk to get the columns correctly but the last column has a newline character at the end so the columns are outputted on separate lines.
My code is the following:
awk -F' ' '{print $14, $4}' catalog.txt >> bbb.txt
Any ideas on how I can do this?
The final output should look like:
81EV00001 15e06.74
81EV00002 12e47.99
81EV00003 15e20.57