I have a tabulated .txt file with three fields, the third field often having multiple words:
GO:0000002 Akt3 mitochondrial genome maintenance
GO:0000002 Mef2a mitochondrial genome maintenance
GO:0000002 Mgme1 mitochondrial genome maintenance
GO:0000002 Mpv17 mitochondrial genome maintenance
GO:0000002 Mrpl15 mitochondrial genome maintenance
I wanted to swap fields 1 and 2 using awk, but when i run the command:
awk 'BEGIN{OFS="\t"}{print $2,$1,$3;}' file.txt
I get:
Akt3 GO:0000002 mitochondrial
Mef2a GO:0000002 mitochondrial
Mgme1 GO:0000002 mitochondrial
Mpv17 GO:0000002 mitochondrial
Why do i not get all the words in the third field, and how to solve this?
Thanks in advance