How to print different colums of different files in one file.
Hi All,
I want to print different colums of different files in one file as the orignal column position by using linux commands such as sed awk etc. here is the example i am giving please help.
Suppose i have one file 1.txt as
1 2 3 4
1 2 3 4
and i have another file 2.txt as
5 6 7 8
5 6 7 8
so i want to print column 1 from 1.txt and column 3 from 2.txt in a different file.
and output file should look like this
1 7
1 7
thanks a lot.
|