echo “This goes to the clipboard” > /dev/clipboard
It’s that simple… usually. For some reason some program output going to STDOUT doesn’t end up there. There is a simple fix, that being to pipe it through cat first:
echo “This goes to the clipboard” | cat > /dev/clipboard
Originally published at
BeyondLogical.net/blog. Please leave any
comments there.