I have copied something from Internet and I want that copied text to get copied to a file. But how can I copy that text without using mouse or any command like Ctrl+V. I want to do this from terminal. How can I do that in Ubuntu 12.04?
Ubuntu – how can I paste copied-clipboard text to a file from terminal
12.04clipboard
Related Question
- Ubuntu – How to copy command console text
- Ubuntu – How to copy the whole history of the clipboard to a text file
- Ubuntu – How to copy text from xfce4 terminal emulator to the clipboard
- Ubuntu – How to copy terminal command in clipboard without using mouse
- Ubuntu – Detect clipboard copy/paste event and modify clipboard contents
- Ubuntu – How to count characters of text copied in the clipboard
Best Answer
Using
xclip
.For writing clipboard to file, overriding existing content:
or for appending clipboard to file: