Sending cygwin output to the Windows clipboard

Oct 12, 2010 10:28


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.

uncategorized

Previous post Next post
Up