Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm kind of new to Linux, but I'm guessing that you could pass the output of a program to a particular script and have it display it in various colors, based on some regular expressions (constructed from some kind of config file perhaps).

share|improve this question

migrated from stackoverflow.com Apr 29 '10 at 16:00

This question came from our site for professional and enthusiast programmers.

3 Answers 3

MultiTail has support for colorizing logs according to some (possibly preconfigured) patterns.

Log Tool is another example of such software.

share|improve this answer

Supercat (spc) works really well. It's in the Debian and Ubuntu repositories and may be in others.

share|improve this answer

Also colout Color Up Arbitrary Command Ouput:

colout is a simple command to add colors to a text stream in your terminal.

The colout command line interface has been carefully designed to be simple. Basically, you will call it like: <text stream> | colout <pattern to color> [color [style]]

colout has the ability to use 8 colors mode, 256 colors mode, colormaps, themes and source code syntax coloring. Patterns are regular expressions.

You can think of colout as an alternative to grep --color which will preserve the surrounding context, with more powerful coloring capabilities.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.