I have two files (with tab delimiters), one file has 4 columns and n number of rows, and the second file has 2 columns and n number of rows.
column 4 of the first file is identical to column 2 of the second file.
I want to have a third file that contains the first four columns from file 1 and column 5 from file 2.
Any suggestions for a single line bash script.
source share