Is there an Environment Variable that contains the clipboard contents?

前端 未结 5 1555
迷失自我
迷失自我 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:07

    No, there isn't a bash environment variable. For your platform (which you don't specify) you may be able to use a command line tool like xclip or one of the many Windows utilities (google for "windows clipboard command line").

提交回复
热议问题