是否可以在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)