74 lines
1.5 KiB
HTML
74 lines
1.5 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>fgrep(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>fgrep(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
fgrep - fixed grep
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>fgrep</STRONG> [<STRONG>-cfhlnsv</STRONG>] [<EM>string</EM>_<EM>file</EM>] [<EM>string</EM>] [<EM>file</EM>] ...
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-c</STRONG> Count matching lines and only print count, not the lines
|
|
|
|
<STRONG>-f</STRONG> Take strings from file named in following argument
|
|
|
|
<STRONG>-h</STRONG> Omit file headers from printout
|
|
|
|
<STRONG>-l</STRONG> List file names once only
|
|
|
|
<STRONG>-n</STRONG> Each line is preceded by its line number
|
|
|
|
<STRONG>-s</STRONG> Status only, no output
|
|
|
|
<STRONG>-v</STRONG> Print only lines not matching
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>fgrep</STRONG> <STRONG>%</STRONG> <STRONG>prog.c</STRONG> # Print lines containing % sign
|
|
|
|
<STRONG>fgrep</STRONG> <STRONG>-f</STRONG> <STRONG>pattern</STRONG> <STRONG>prog.c</STRONG>
|
|
# Take strings from <EM>pattern</EM>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
<EM>Fgrep</EM> is essentially the same as grep, except that it only searches for
|
|
lines containing literal strings (no wildcard characters). The pattern
|
|
may consist of several lines with one string to search on each line.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/cgrep.1.html">cgrep(1)</A></STRONG>, <STRONG><A HREF="../man1/grep.1.html">grep(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|