How to exchange two columns in a table?

Samuel Thibault samuel.thibault at
Mon Jan 8 18:19:09 UTC 2007

coscell at, le Sat 06 Jan 2007 23:14:40 +0800, a écrit :
> Thank you! It's just a tab-delimited text file.

You can use cut for this:

cut -d "	" -f 1-3,5,4,6-8

(the character between the two " is a tab, which you can type by
pressing ^V then the tab.  Here columns 3 and 4 are exchanged.


More information about the Blinux-list mailing list