linux – 在Bash脚本中管道进出剪贴板 投稿者 5年前 是否可以在Bash中管道进出剪贴板? 无论是与设备手柄之间的管道连接还是使用辅助应用程序,我找不到任何东西. 例如,如果/ dev / clip是链接到剪贴板的设备,我们可以这样做: cat /dev/clip # Dump the contents of the clipboard cat foo > /dev/clip # Dump the contents of "foo" into the clipboard 百度未收录 退出移动版
是否可以在Bash中管道进出剪贴板? 无论是与设备手柄之间的管道连接还是使用辅助应用程序,我找不到任何东西. 例如,如果/ dev / clip是链接到剪贴板的设备,我们可以这样做: cat /dev/clip # Dump the contents of the clipboard cat foo > /dev/clip # Dump the contents of "foo" into the clipboard 百度未收录