Is it possible to pipe to/from the clipboard in bash? Whether it's piping to/from a device handle or using an auxiliary application, I can't find anything.
For example, if /dev/clip was a device linking to the clipboard we could do:
cat /dev/clip # dump the contents of the clipboard
cat foo > /dev/clip # dump the contents of "foo" into the clipboard