⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0224-0224.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>



<HEAD>

<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=01 //-->

<!-- PAGES=0001-0736 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="0222-0223.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0225-0226.html">Next</A></CENTER></P>







<A NAME="PAGENUM-224"><P>Page 224</P></A>





<TABLE>



<TR><TD>

</TD><TD>

space); the resulting label will also be a two-part label with the same first part as before merging, and

so additional labels can be merged into it. Note that it is permissible for the first part to be empty;

this may be desirable for expressions used in the

short-label command.

</TD></TR><TR><TD>

(expr)

</TD><TD>

The same as expr. Used for grouping.

</TD></TR></TABLE>



<P>The preceding expressions are listed in order of precedence (highest first);

&amp; and | have the same precedence.

</P>



<P><B>

MACRO INTERFACE

</B>

</P>



<P>Each reference starts with a call to the macro

]-. The string [F will be defined to be the label for this reference, unless the

no-label-in-reference command has been given. There then follows a series of string definitions, one for each field: string

[X corresponds to field X. The number register [P is set to

1 if the P field contains a range of pages. The [T,

[A, and [O number registers are set to 1 according as the

T, A, and O fields end with one of the characters

.?!. The [E number register will be set to 1 if the

[E string contains more than one name. The reference is followed by a call to the

][ macro. The first argument to this macro gives a number representing the type of the reference. If a reference contains a

J field, it will be classified as type 1; otherwise, if it contains a

B field, it will be type 3; otherwise, if it contains a G or R field it will be type 4, otherwise if

it contains an I field, it will be type 2; otherwise, it will be type 0. The second argument is a symbolic name for the type:

other, journal-article, book, article-in-book, or

tech-report. Groups of references that have been accumulated or are produced

by the bibliography command are preceded by a call to the

]&lt; macro and followed by a call to the ]&gt; macro.

</P>



<P><B>

FILES

</B>

</P>





<!-- CODE SNIP //-->

<PRE>/usr/dict/papers/Ind     Default database

file.i     Index files

</PRE>

<!-- END CODE SNIP //-->



<P><B>

SEE ALSO

</B>

</P>







<P>gindxbib(1), glookbib(1), lkbib(1)

</P>



<P><B>

BUGS

</B>

</P>





<P>In label expressions, &lt;&gt; expressions are ignored inside

.char expressions.

</P>



<P>Groff Version 1.09

</P>



<H3><A NAME="ch01_ 96">

grep, egrep, fgrep

</A></H3>



<P>grep, egrep, fgrep&#151;Print lines matching a pattern

</P>



<P><B>

SINOPSIS

</B>

</P>





<!-- CODE SNIP //-->

<PRE>

grep [ _[[AB]]num ][_[CEFGVBchilnsvwx]][_e ] pattern j _ffile ][files... ]

</PRE>

<!-- END CODE SNIP //-->



<P><B>

DESCRIPTION

</B>

</P>





<P>grep searches the named input files (or standard input if no files are named, or the filename

_ is given) for lines containing a match to the given

pattern. By default, grep prints the matching lines.

</P>

<P>There are three major variants of grep, controlled by the following options:

</P>

<TABLE>



<TR><TD>

_G

</TD><TD>

Interpret pattern as a basic regular expression (see the list following this one). This is the default.

</TD></TR><TR><TD>

_E

</TD><TD>

Interpret pattern as an extended regular expression.

</TD></TR><TR><TD>

_F

</TD><TD>

Interpret pattern as a list of fixed strings, separated by newlines, any of which is to be matched.

</TD></TR></TABLE>



<P>In addition, two variant programs, egrep and

fgrep, are available. egrep is similar (but not identical) to

grepn_E, and is compatible with the historical UNIX

egrep. Fgrep is the same as grepn_F.

</P>



<P>All variants of grep understand the following options:

</P>







<P><CENTER>

<a href="0222-0223.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0225-0226.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -