bash cut columns to one file and save onto the end of another file
问题 I would like to cut two columns from one file and stick them on the end of a second file. The two file have the exact same number of lines file1.txt 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 file2.txt a b c d e f g h i j a b c d e f g h i j a b c d e f g h i j a b c d e f g h i j So far I have been using cut -f9-10 file2.txt | paste file1.txt - > file3.txt which outputs exactly what I want 1 2 3 4 5 6 7 8 9 10 i j 1 2 3 4 5 6 7 8 9 10 i j 1 2 3 4 5 6 7 8 9 10 i j However