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 :).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Also, in case you are working in a remote machine
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 :).