search

Home  >  Q&A  >  body text

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

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

天蓬老师天蓬老师2838 days ago1673

reply all(1)I'll reply

  • 黄舟

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

    Disregarding the terminator, the method of "searching the current output" should be to pass the output content to less through a pipe, and use the '/keyword' command in less to search (highlight) the content.

    For example, you use the cat command to output an html file and search for 'html' in it:

    cat index.html | less

    Then in less:

    /html

    You will see 'html' highlighted.

    reply
    0
  • Cancelreply