Is there an Environment Variable that contains the clipboard contents?

前端 未结 5 1513
迷失自我
迷失自我 2021-01-22 20:28

Is there a Bash environment variable (say $CLIPBOARD or similar) that contains the current contents of the clipboard?

The specific example is to see the top

5条回答
  •  无人共我
    2021-01-22 21:05

    I don't really know exactly what you are trying to accomplish. Check out the following article and see if it helps: Remotely transferring clipboard data using netcat and bash

    Update: If you are using OSX, try using pbcopy & pbpaste to copy and paste data from the clipboard.

提交回复
热议问题