[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to exchange two columns in a table?



coscell mail batol net, 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.

Samuel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]