How do I copy text from my xterm without a mouse?

后端 未结 6 1563
夕颜
夕颜 2021-01-30 05:27

I want to use part of the output of a command run from the command line in another xterm, or as part of a different command. For instance:

> grep error err         


        
6条回答
  •  无人共我
    2021-01-30 05:56

    I find XSel is useful in similar situations. It's a tool that manipulates the X selection. For example, this will store the output of your command to the clipboard:

    grep error error.log | xsel -bi
    

提交回复
热议问题