I want to paste one file (with vectos 1xn) in another file? Example:


rs01  rs02  rs03


AA     BB    CC

How I can do this? But in my case, I have 55,000 column in File1 and File2, so, I've been thinking that is difficult to use the command to put head.


The cat utility concatenates all its inputs into one data stream.

Giving it two files, it produces output consisting of the complete contents of the first file, followed by the complete contents of the second file, in that order.

In your case:

$ cat file1 file2 >file-1-and-2
|improve this answer|||||

You can try with

cat file1 >> file2

Or you can try the following

while read LINE
           echo $LINE >> file2
 done < file1
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.