-
Notifications
You must be signed in to change notification settings - Fork 14
/
grc.1
76 lines (67 loc) · 1.44 KB
/
grc.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.TH GRC 1
.SH NAME
grc \- frontend for generic colouriser
.BR grcat "(1)
.SH SYNOPSIS
.B grc
.I [options] "command [args]"
.SH DESCRIPTION
.BR grc
will execute command
.I "command"
with optional parameters
.I "[args]"
piping its stdout or stderr into
.BR grcat ",
with apropriate configuration file.
Configuration file for
.BR grc
is determined by /etc/grc.conf file.
Format of /etc/grc.conf:
each entry consists of 2 lines, between entries there can be any number of empty
lines or lines beginning with # (comments)
First line is regular expression, second line the name of configuration
file for
.BR grcat ".
Configuration file after the first regular expression matching
.I "command [args]"
will be passed to
.BR grcat
as its configuration file
.SH OPTIONS
.TP
.B \-\-help
Show summary of options.
.TP
.B \-\-version
Display version.
.TP
.B \-e \-\-stderr
Redirect error output. Unless
.B -s
is selected as well, this cancels redirection of standard output via
.BR grcat
.TP
.B \-s \-\-stdout
Redirect standard output. Used to redirect standard output
together with
.B \-\-stderr
option.
.TP
.B \-\-colour=x
x is one of
.I on
.I off
.I auto
.B \-\-colour=on
will colourise (default)
.B \-\-colour=off
will just execute
.I command
without colourising.
.B \-\-colour=auto
will test if standard output is a tty, and colourise only when it is.
.SH SEE ALSO
.BR grcat "(1)
.SH AUTHOR
Written by Radovan Garab\('ik <garabik @ kassiopeia.juls.savba.sk>