Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Colored grep?

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?

like image 931
epatel Avatar asked Sep 26 '08 09:09

epatel


1 Answers

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).

like image 62
Greg Hewgill Avatar answered Sep 21 '22 13:09

Greg Hewgill