source: trunk/minix/man/man1/cgrep.1@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 954 bytes
Line 
1.TH CGREP 1
2.SH NAME
3cgrep \- grep and display context
4.SH SYNOPSIS
5\fBcgrep\fR [\fB\-a \fIn\fR]\fR [\fB\-b \fIn\fR] [\fB\-f\fR] [\fB\-l \fIn\fR] [\fB\-n\fR] [\fB\-w \fIn\fR] \fIpattern\fR [\fIfile\fR] ...\fR
6.br
7.de FL
8.TP
9\\fB\\$1\\fR
10\\$2
11..
12.de EX
13.TP 20
14\\fB\\$1\\fR
15# \\$2
16..
17.SH OPTIONS
18.FL "\-a" "How many lines to display after the matching line"
19.FL "\-b" "How many lines to display before the matching line"
20.FL "\-f" "Suppress file name in the output"
21.FL "\-l" "Lines are truncated to this length before comparison"
22.FL "\-n" "Suppress line numbers in the output"
23.FL "\-w" "Sets window size (same as \fB\-a\fR n \fB\-b\fR n)"
24.SH EXAMPLES
25.EX "cgrep \-w 3 hello file1" "Print 3 lines of context each way"
26.SH DESCRIPTION
27.PP
28\fICgrep\fR is a program like \fIgrep\fR, except that it also can print
29a few lines above and/or below the matching lines.
30It also prints the line numbers of the output.
31.SH "SEE ALSO"
32.BR grep (1),
33.BR fgrep (1).
Note: See TracBrowser for help on using the repository browser.