31 July 2015

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
  1. # Empty the document and paste the text.
  2. xclip -o > file-name.txt
  4. # Paste at the end of the document.
  5. xclip -o >> file-name.txt
Programming Language: Bash