comparison index.t2t @ 23:ce077dec4459

fix dealing with newlines
author paulo
date Tue, 05 Aug 2014 02:05:34 -0700
parents d516b77d4916
children
comparison
equal deleted inserted replaced
0:326bd230c5f2 1:8bdd22629105
1 rcg: regex colored grep 1 rcg: regex colored grep
2 Paulo Ang (pbba13@gmail.com) 2 Paulo Ang (pbba13@gmail.com)
3 2010-12-13 3 2012-03-29
4 4
5 5
6 //rcg// stands for //regex colored grep// and makes it easy to colorify your xterm-compatible terminal output. 6 //rcg// stands for //regex colored grep// and makes it easy to colorify your xterm-compatible terminal output.
7 7
8 The inspiration came from hack #75 from //Linux Server Hacks// by Rob Flickenger (O'Reilly). My version is written in C. 8 The inspiration came from hack #75 from //Linux Server Hacks// by Rob Flickenger (O'Reilly). My version is written in C.
9 9
10 Download the latest source code from [here /hg/rcg/rcg-1/rcg.c]. 10 Download the latest source code from [here /hg/rcg/rcg-1/rcg.c].
11
12 ```
13 Usage: rcg [options] <PATTERN>
14
15 Options:
16 -l, --line Highlight whole line
17 -B, --bold Bold
18 -b <color> Background color
19 -f <color> Foreground color
20
21 <color> can be one of the following:
22 black
23 red
24 green
25 brown
26 blue
27 magenta
28 cyan
29 white
30 default
31 ```