I have a file with as below:
A,B
1,hi there
2, Heloo there
I am trying to print the B column first and then column A
cat file.txt | cut -d "," -f2,1
However, this does not work. Any ideas how to do it?
I have a file with as below:
A,B
1,hi there
2, Heloo there
I am trying to print the B column first and then column A
cat file.txt | cut -d "," -f2,1
However, this does not work. Any ideas how to do it?