📄 egrep.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>egrep</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_001_014_548"> </a>NAME</h4><blockquote>egrep - search a file with an ERE pattern (<b><a href="intro.html#tag_001_003_003">LEGACY</a></b>)</blockquote><h4><a name = "tag_001_014_549"> </a>SYNOPSIS</h4><blockquote><pre><code>egrep <b>[</b> -c| -l<b>][</b>-inv<b>] </b>-e <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>egrep <b>[</b> -c| -l<b>][</b>-inv<b>] </b>-f <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>egrep <b>[</b> -c| -l<b>][</b>-inv<b>] </b><i>pattern_list </i><b>[</b><i>file</i>...<b>]</b></code></pre></blockquote><h4><a name = "tag_001_014_550"> </a>DESCRIPTION</h4><blockquote>The name<i>egrep</i>is an obsolescent version equivalent to<i><a href="grep.html">grep</a></i><b>-E</b>.<p>A command invoking the<i>egrep</i>utility with the<b>-e</b>option specified is equivalent to the command:<pre><code>grep -E <b>[</b> -c| -l<b>][</b>-inv<b>] </b>-e <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b></code></pre><p>A command invoking the<i>egrep</i>utility with the<b>-f</b>option specified is equivalent to the command:<pre><code>grep -E <b>[</b> -c| -l<b>][</b>-inv<b>] </b>-f <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b></code></pre><p>A command invoking the<i>egrep</i>utility with neither the<b>-e</b>nor the<b>-f</b>option specified is equivalent to the command:<pre><code>grep -E <b>[</b> -c| -l<b>][</b>-inv<b>] </b><i>pattern_list </i><b>[</b><i>file</i>...<b>]</b></code></pre></blockquote><h4><a name = "tag_001_014_551"> </a>OPTIONS</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_552"> </a>OPERANDS</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_553"> </a>STDIN</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_554"> </a>INPUT FILES</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_555"> </a>ENVIRONMENT VARIABLES</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_556"> </a>ASYNCHRONOUS EVENTS</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_557"> </a>STDOUT</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_558"> </a>STDERR</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_559"> </a>OUTPUT FILES</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_560"> </a>EXTENDED DESCRIPTION</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_561"> </a>EXIT STATUS</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_562"> </a>CONSEQUENCES OF ERRORS</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_563"> </a>APPLICATION USAGE</h4><blockquote>Unlike<i><a href="grep.html">grep</a></i><b>-E</b>,multiple<b>-e</b>or<b>-f</b>options produce undefined results.Adjacent newline characters in the<i>pattern</i>operand or<b>-e</b> <i>pattern_list</i>option-argument also produce undefined results.<p>Applications should migrate to the<i><a href="grep.html">grep</a></i><b>-E</b>command.</blockquote><h4><a name = "tag_001_014_564"> </a>EXAMPLES</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_565"> </a>FUTURE DIRECTIONS</h4><blockquote>Refer to<i><a href="grep.html">grep</a></i>.</blockquote><h4><a name = "tag_001_014_566"> </a>SEE ALSO</h4><blockquote><i><a href="grep.html">grep</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -