Is it possible to pipe to/from the clipboard in Bash?
(是否可以在Bash中管道进出剪贴板?)
Whether it is 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:
(例如,如果/dev/clip
是链接到剪贴板的设备,我们可以这样做:)
cat /dev/clip # Dump the contents of the clipboard
cat foo > /dev/clip # Dump the contents of "foo" into the clipboard
ask by marcog translate from so