rcg stands for regex colored grep and makes it easy to colorify your xterm-compatible terminal output.

The inspiration came from hack #75 from Linux Server Hacks by Rob Flickenger (O'Reilly). My version is written in C.

Download the latest source code from here.

Usage: rcg [options] <PATTERN> 

Options: 
  -l, --line           Highlight whole line 
  -B, --bold           Bold 
  -b <color>           Background color 
  -f <color>           Foreground color 

<color> can be one of the following: 
  black 
  red 
  green 
  brown 
  blue 
  magenta 
  cyan 
  white 
  default