Is it possible to have a bash script put some text in the system clipboard?
(I use Ubuntu with default Gnome and Bash.)
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
There is a commandline tool
Example: Copy output of the following command to clipboard:
$ sort -n -k 3, -k 2 file.txt | xclip
I haven't tried it on my own, but there is a Bash Clipboard Interactive Script project on SourceForge: http://bics.sourceforge.net/