Copy and paste text to/from X11 clipboard from the command line
Access X11 clipboards from the command-line
xclip$ cat file.txt | xclip -selection clipboard$ xclip -selection clipboard -o > output.txt$ echo 'Hello World' | xclip -selection clipboard