xsel looks generally really useful – just learned you can do things like:
xsel < file xsel > file
and lots more …