Syntax highlighting/colorizing cat

前端 未结 18 1913
不思量自难忘°
不思量自难忘° 2020-12-02 03:39

Is there a method to colorize the output of cat, the way grep does.

For grep, in most consoles it displays a colored output hi

18条回答
  •  借酒劲吻你
    2020-12-02 04:32

    In this question https://superuser.com/questions/602294/is-there-colorizer-utility-that-can-take-command-output-and-colorize-it-accordin grcat/grc tool was recommended as alternative to supercat.

    Man of grc and of grcat; it is part of grc package (sources):

    grc - frontend for generic colouriser grcat(1)

    grcat - read from standard input, colourise it and write to standard output

提交回复
热议问题