Re: How to exchange two columns in a table?

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

 



coscell@xxxxxxxxxxxxxx, 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

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]