Mercurial > hg > index.fcgi > rcg > rcg-1
annotate index.t2t @ 20:dfafe7582bd6
update link to source in index.html
author | paulo |
---|---|
date | Tue, 12 Mar 2013 22:37:52 -0600 |
parents | d516b77d4916 |
children |
rev | line source |
---|---|
paulo@18 | 1 rcg: regex colored grep |
paulo@18 | 2 Paulo Ang (pbba13@gmail.com) |
paulo@19 | 3 2012-03-29 |
paulo@18 | 4 |
paulo@18 | 5 |
paulo@18 | 6 //rcg// stands for //regex colored grep// and makes it easy to colorify your xterm-compatible terminal output. |
paulo@18 | 7 |
paulo@18 | 8 The inspiration came from hack #75 from //Linux Server Hacks// by Rob Flickenger (O'Reilly). My version is written in C. |
paulo@18 | 9 |
paulo@18 | 10 Download the latest source code from [here /hg/rcg/rcg-1/rcg.c]. |
paulo@19 | 11 |
paulo@19 | 12 ``` |
paulo@19 | 13 Usage: rcg [options] <PATTERN> |
paulo@19 | 14 |
paulo@19 | 15 Options: |
paulo@19 | 16 -l, --line Highlight whole line |
paulo@19 | 17 -B, --bold Bold |
paulo@19 | 18 -b <color> Background color |
paulo@19 | 19 -f <color> Foreground color |
paulo@19 | 20 |
paulo@19 | 21 <color> can be one of the following: |
paulo@19 | 22 black |
paulo@19 | 23 red |
paulo@19 | 24 green |
paulo@19 | 25 brown |
paulo@19 | 26 blue |
paulo@19 | 27 magenta |
paulo@19 | 28 cyan |
paulo@19 | 29 white |
paulo@19 | 30 default |
paulo@19 | 31 ``` |