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?
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?
Using
xclip
.For writing clipboard to file, overriding existing content:
or for appending clipboard to file:
If you don't want (or you can't) install extra software, you can do it with
cat
after this the terminal waits user input, so you can paste from your clipboard:
Ctrl + Shift + v
Then press Enter
And exit
cat
with Ctrl + cI learned this while watching:
https://www.youtube.com/watch?v=dDddKmdLEdg
copy to clipboard then
but it not include new line "\n"
用件、用例(scenario): I input some Japanese 言葉 on google.translate.com then I'd like to take a note to save input history for review it later.
Press
Ctrl
+Shift
+C
to CopyPress
Ctrl
+Shift
+V
to Paste