paulo@18: paulo@18: paulo@18: paulo@18: paulo@18: paulo@18: rcg: regex colored grep paulo@18: paulo@18: paulo@18: paulo@18: paulo@18: paulo@18:
paulo@18:

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

paulo@18:

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

paulo@18:

paulo@20: Download the latest source code from here. paulo@18:

paulo@19: paulo@19:
paulo@19: Usage: rcg [options] <PATTERN> 
paulo@19: 
paulo@19: Options: 
paulo@19:   -l, --line           Highlight whole line 
paulo@19:   -B, --bold           Bold 
paulo@19:   -b <color>           Background color 
paulo@19:   -f <color>           Foreground color 
paulo@19: 
paulo@19: <color> can be one of the following: 
paulo@19:   black 
paulo@19:   red 
paulo@19:   green 
paulo@19:   brown 
paulo@19:   blue 
paulo@19:   magenta 
paulo@19:   cyan 
paulo@19:   white 
paulo@19:   default 
paulo@19: 
paulo@19: paulo@18:
paulo@18: paulo@18: paulo@18: