Copy STDIN to clipboard or print clipboard to STDOUT.
echo 123 | xclip -i
echo 123 | xclip -sel clip
xclip -o > file.txt