Sometimes coloring a logfile or other gives a good overview when looking for stuff and behaviors
I just saw that grep have a coloring feature
grep -C 99999 --color <regexp> <filename>
What other methods are there?
Sometimes coloring a logfile or other gives a good overview when looking for stuff and behaviors
I just saw that grep have a coloring feature
grep -C 99999 --color <regexp> <filename>
What other methods are there?
Here is a snippet for a log coloring tool I sometimes use.
Note that is only works against stdin/stdout and in a terminal supporting ANSI colors.
This is an older question, but in case anyone is still looking, I recently created
colorize
, a tool which allows one to specify either fixed patterns or regular expressions to match with specific colors. It works out of the box with an intuitive syntax for specifying highlighting, anddocopt
as its only dependency.There are many programs that support coloring like Colortail
Maybe this can be helpful too: GenericColouriser
We use baretail, now if they added color to their baregrep, that would be nice.
For searching source code, I use ack. It's got a lot of options that make sense for searching code (such as automatically ignoring SCM directories).