1

Reorder column in Unix

view story
linux-howto

http://www.unix.com – I have a flat file with the 3 columns and separate by tab delimiter, and the last column with special character. A B [abc3] C D [def4] F G [ghi5] Now I would like to swap the third column with second column to following format: A [abc3] B C [def4] D F [mip5] G I know this cannot be done in Unix command with using cut command. Please advise. (HowTos)