I am writing a shell script to combine data.
I have 2 files with different columns.
One of the columns is the same for both files.
Like :
File 1:
a 5
c 7
d 9
b 5
File 2:
c 1
d 8
a 6
b 3
At the moment, my script is putting data in a single file using
paste -d ' ' 'file1' 'file2' > "file3"
I would like to know if it is possible to combine two columns together and in order, like:
a 5 6
b 5 3
c 7 1
d 9 8
thank
source
share