首頁  >  問答  >  主體

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

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

天蓬老师天蓬老师2741 天前1593

全部回覆(1)我來回復

  • 黄舟

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

    拋開terminator不說,「搜尋目前輸出」的方法應該是把輸出內容透過管道傳給less,在less中用'/keyword'指令對內容進行搜尋(高亮)。

    例如你用cat指令輸出一個html文件,並蒐索其中的'html':

    cat index.html | less

    然後在less中:

    /html

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

    回覆
    0
  • 取消回覆