How to paste directly from clipboard to file in terminal. Using some text editor will be really slow, if the text is very long single line. Using command line is almost instant.
Source code viewer
# Empty the document and paste the text. xclip -o > file-name.txt # Paste at the end of the document. xclip -o >> file-name.txtProgramming Language: Bash