Hi,
I do have the following two files:
file1:
x1 x2 x3 x4
name1 33 4 54
name2 23 1 32
..................
file2:
x3 x4 x1 x2
23 2 xxx 223
21 3 yyy 23
...............
I want to sort the columns of file2 to the same order of the columns of file1 (according to the header of file1).
Can any body help...
Thanks in advance.
I do have the following two files:
file1:
x1 x2 x3 x4
name1 33 4 54
name2 23 1 32
..................
file2:
x3 x4 x1 x2
23 2 xxx 223
21 3 yyy 23
...............
I want to sort the columns of file2 to the same order of the columns of file1 (according to the header of file1).
Can any body help...
Thanks in advance.