copy/paste of large amount of text to terminal leads to scrambled/missing characters
When I need to paste a lot of text into a Terminal application window, I use the cat command to transfer the text to a file. For example, I would enter the command below before pasting the text with the ⌘+V key combination.

cat &gt;myfile.txt


When finished pasting text, enter the control+D key combination. This will terminate the cat command.


  Note: The control+D key combination must be entered at the beginning of a line. If not at the beginning of a line after pasting the text, then press the return key before entering the control+D key combination.