Files
oldlinux-files/Minix/2.0.0/wwwman/man1/cgrep.1.html
2024-02-19 00:21:39 -05:00

74 lines
1.5 KiB
HTML

<HTML>
<HEAD>
<TITLE>cgrep(1)</TITLE>
</HEAD>
<BODY>
<H1>cgrep(1)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
cgrep - grep and display context
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>cgrep</STRONG> [<STRONG>-a</STRONG> <EM>n</EM>] [<STRONG>-b</STRONG> <EM>n</EM>] [<STRONG>-f</STRONG>] [<STRONG>-l</STRONG> <EM>n</EM>] [<STRONG>-n</STRONG>] [<STRONG>-w</STRONG> <EM>n</EM>] <EM>pattern</EM> [<EM>file</EM>] ...
</PRE>
<H2>OPTIONS</H2><PRE>
<STRONG>-a</STRONG> How many lines to display after the matching line
<STRONG>-b</STRONG> How many lines to display before the matching line
<STRONG>-f</STRONG> Suppress file name in the output
<STRONG>-l</STRONG> Lines are truncated to this length before comparison
<STRONG>-n</STRONG> Suppress line numbers in the output
<STRONG>-w</STRONG> Sets window size (same as <STRONG>-a</STRONG> n <STRONG>-b</STRONG> n)
</PRE>
<H2>EXAMPLES</H2><PRE>
<STRONG>cgrep</STRONG> <STRONG>-w</STRONG> <STRONG>3</STRONG> <STRONG>hello</STRONG> <STRONG>file1</STRONG>
# Print 3 lines of context each way
</PRE>
<H2>DESCRIPTION</H2><PRE>
<EM>Cgrep</EM> is a program like <EM>grep</EM>, except that it also can print a few lines
above and/or below the matching lines. It also prints the line numbers
of the output.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man1/grep.1.html">grep(1)</A></STRONG>, <STRONG><A HREF="../man1/fgrep.1.html">fgrep(1)</A></STRONG>.
</PRE>
</BODY>
</HTML>