DEV Community

Discussion on: I've been using cat and vim for the wrong reasons for so long...

Collapse
 
flrnd profile image
Florian Rand

Also, in case you are working in a remote machine

man scp

But I'm trying to figure out why do you need to copy it into the clipboard in the first place.

a simple cat file1.txt > file2.txt would do the job (or the examples already in comments), unless you are in a remote session (that's where scp comes handy :).