Is there a Cygwin alternative for OS X's pbcopy
?
From Mac Developer Library man page
pbcopy, pbpaste - provide copying and pasting to the pasteboard (the Clipboard)
from command line
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.
Sign up to join this communityIs there a Cygwin alternative for OS X's pbcopy
?
From Mac Developer Library man page
pbcopy, pbpaste - provide copying and pasting to the pasteboard (the Clipboard)
from command line
Apparently Cygwin has /dev/clipboard
, so you can do stuff like echo test >/dev/clipboard
.
See also Fun with Cygwin's /dev/clipboard
Microsoft Windows has a native solution that you can also use in Cygwin: clip
. For example:
systeminfo | clip
Further details: Microsoft TechNet.
I've got the following in my ~/.bash_profile
, which essentially adds OS X's pbcopy
and pbpaste
to Cygwin:
if [ -e /dev/clipboard ]; then
alias pbcopy='cat >/dev/clipboard'
alias pbpaste='cat /dev/clipboard'
fi
pbcopy
? What features must your "alternative" have? There are people who might know exactly what you want – but cannot tell you because they don't know they know (not knowingpbcopy
) ;) Please edit your post and specify. – Izzy♦ Jun 3 '15 at 8:31