Home > Web > From bash to clipboard in X

From bash to clipboard in X

I recently had the workflow of opening a file in an editor, copying its content just to paste it into
another one. There had to be another way to do this. It was xclip. With xclip you can insert ‘things’ from Stdin or from a file!

xclip -i file.txt inserts the content from file.txt into the clipboard from X!

It does naturally also work the other way round. with xclip -o you insert the content of the X clipboard into the current bash-shell. Comes in handy for scripting ;)

martin Web

  1. Bisher keine Kommentare
  1. Bisher keine Trackbacks
Du musst Dich anmelden um einen Kommentar zu schreiben