Copy shell script output to clipboard

后端 未结 6 462
灰色年华
灰色年华 2020-12-23 17:09

Is there any easy way to implement the copy to clipboard option from the output of a shell script ?

6条回答
  •  心在旅途
    2020-12-23 17:36

    You can use the xclip command.

     echo hello | xclip
    

    Instructions for obtaining xclip are here.

提交回复
热议问题