1

How to paste second file into the first file

view story
linux-howto

http://www.unix.com – Hello, I am new to Unix and hoping that someone could help me with this. I have 2 different text files that has more than 300,000 rows and would like to paste a single column on the File 2 as the very last column of File 1. Example, File 1: AAA DDD VVV RRR AAA DDD VVV RRR BBB HHH GGG SSS QQQ ZZZ HHH RRR File2: TTT TTT TTT TTT What I want is: AAA DDD VVV RRR TTT AAA DDD VVV RRR TTT BBB HHH GGG SSS TTT QQQ ZZZ HHH RRR TTT I tried to use: paste -d "\t" file2 file1 but for some reason it got pasted as the first column instead of the last column. Any (HowTos)