6

Alternatively, how can you dump the contents of your clipboard to a text file? If at all possible, I'd like this for the actual clipboard, but also the clipboard delegated to highlighted text, and even vim's if you can manage it.

I figure if you can at least echo it, then you should be able to > into a file pretty easily.

Anon
  • 12,339

1 Answers1

4

Job for xclip:

xclip -o >file.txt
  • -o dumps the current clipboard (precisely selection) content to STDOUT, then you can simply leverage a shell redirection

xclip comes with xclip package, you might need to install it first.

heemayl
  • 93,925