This works and prints 'hello':
$ echo hello | xclip
$ xclip -o
Pasting in a graphical application doesn't work. Here I get the old content, before 'hello' was copied the way shown above.
But it works the other way around. A text copied from a website can be printed out on a console properly using 'xclip' command.
Can anyone confirm this?