I have two files in linux, the first file has 4 columns and the second has 2 columns. I want to merge these files into a new file that has the first 3 columns from file 1 an
you can try this one without paste command: awk '{print $1}{print $2}{print $3}' file1 >> mergedfile awk '{print $2}' file2 >> mergedfile