I have a sample as shown here:
input.txt
USERS position ref rslt
usr1 X B
usr2 2980 C
usr3 3323 P
usr4 A
usr5 5251 U
usr6 9990 A
usr7 10345 T
I need to print "rslt" column and corresponding "USERS", output file should be like this:
output.txt
USERS rslt
usr1 B
usr2 C
usr4 A
usr6 A
I tried to use awk
command but it didn't work. Note that, all black position of the table is filled with spaces (No. of spaces is different in each row)
input.txt
as long as it helps to getoutput.txt