相关疑难解决方法(0)

在Bash脚本中管道往返剪贴板

是否可以在Bash中管道进出剪贴板?

无论是与设备手柄之间的管道连接还是使用辅助应用程序,我找不到任何东西.

例如,如果/dev/clip是链接到剪贴板的设备,我们可以这样做:

cat /dev/clip        # Dump the contents of the clipboard
cat foo > /dev/clip  # Dump the contents of "foo" into the clipboard
Run Code Online (Sandbox Code Playgroud)

linux macos bash clipboard

879
推荐指数
21
解决办法
46万
查看次数

标签 统计

bash ×1

clipboard ×1

linux ×1

macos ×1