Maison  >  Questions et réponses  >  le corps du texte

linux - terminator 在当前的输出中 搜索,内容不能高亮

在 ubuntu 下安装了 terminator, 一个致命的问题,搜索当前输出,结果内容不能高亮,求解决方案

天蓬老师天蓬老师2741 Il y a quelques jours1594

répondre à tous(1)je répondrai

  • 黄舟

    黄舟2017-04-17 15:52:11

    抛开terminator不说,“搜索当前输出”的方法应该是把输出内容通过管道传给less,在less中用'/keyword'命令对内容进行搜索(高亮)。

    比如你用cat命令输出一个html文件,并搜索其中的'html':

    cat index.html | less

    然后在less中:

    /html

    你会看到'html'被高亮了。

    répondre
    0
  • Annulerrépondre