I have a file like this
gene - chr7 55675 55676 100 100 gene - chr7 55678 55679 100 100 gene - chr7 55683 55686 NP 100
The file is tab separated.
I want to change the file such that column 5 should be at column 4 and column 4 at column 5 and after that print all the columns as it is. I am showing you only 2 columns after 5th column, but there can be many more.
cut -f 1,2,3,5,4,6- but it does not work.
I would prefer an awk solution for it.