Copy shell script output to clipboard

后端 未结 6 436
灰色年华
灰色年华 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:39

    If you do that on Windows 10 LXXS Ubuntu bash you can do

    echo "What so ever..." | clip.exe
    

    Update

    Does also work with WSL and WSL2.

提交回复
热议问题