CVSROOT: /web/grep Module name: grep Changes by: Karl Berry <karl> 09/05/24 18:43:01
Index: doc/grep_6.html =================================================================== RCS file: doc/grep_6.html diff -N doc/grep_6.html --- doc/grep_6.html 23 Jan 2002 10:33:52 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,103 +0,0 @@ -<HTML> -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- Created on January, 23 2002 by texi2html 1.64 --> -<!-- -Written by: Lionel Cons <[email protected]> (original author) - Karl Berry <[email protected]> - Olaf Bachmann <[email protected]> - and many others. -Maintained by: Olaf Bachmann <[email protected]> -Send bugs and suggestions to <[email protected]> - ---> -<HEAD> -<TITLE>grep, print lines matching a pattern: Grep Programs</TITLE> - -<META NAME="description" CONTENT="grep, print lines matching a pattern: Grep Programs"> -<META NAME="keywords" CONTENT="grep, print lines matching a pattern: Grep Programs"> -<META NAME="resource-type" CONTENT="document"> -<META NAME="distribution" CONTENT="global"> -<META NAME="Generator" CONTENT="texi2html 1.64"> - -</HEAD> - -<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000"> - -<A NAME="SEC6"></A> -<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0> -<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_5.html#SEC5"> < </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_7.html#SEC7"> > </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_7.html#SEC7"> << </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep.html#SEC_Top"> Up </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_7.html#SEC7"> >> </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep.html#SEC_Top">Top</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_toc.html#SEC_Contents">Contents</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_21.html#SEC21">Index</A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_abt.html#SEC_About"> ? </A>]</TD> -</TR></TABLE> -<HR SIZE=1> -<H1> 4. <CODE>grep</CODE> programs </H1> -<!--docid::SEC6::--> -<P> - -<CODE>grep</CODE> searches the named input files (or standard input if no -files are named, or the file name <TT>`-'</TT> is given) for lines containing -a match to the given pattern. By default, <CODE>grep</CODE> prints the -matching lines. There are four major variants of <CODE>grep</CODE>, -controlled by the following options. -</P><P> - -<DL COMPACT> - -<DT><SAMP>`-G'</SAMP> -<DD><DT><SAMP>`--basic-regexp'</SAMP> -<DD><A NAME="IDX145"></A> -<A NAME="IDX146"></A> -<A NAME="IDX147"></A> -Interpret the pattern as a basic regular expression. This is the default. -<P> - -<DT><SAMP>`-E'</SAMP> -<DD><DT><SAMP>`--extended-regexp'</SAMP> -<DD><A NAME="IDX148"></A> -<A NAME="IDX149"></A> -<A NAME="IDX150"></A> -Interpret the pattern as an extended regular expression. -<P> - -<DT><SAMP>`-F'</SAMP> -<DD><DT><SAMP>`--fixed-strings'</SAMP> -<DD><A NAME="IDX151"></A> -<A NAME="IDX152"></A> -<A NAME="IDX153"></A> -Interpret the pattern as a list of fixed strings, separated -by newlines, any of which is to be matched. -<P> - -<DT><SAMP>`-P'</SAMP> -<DD><DT><SAMP>`--perl-regexp'</SAMP> -<DD><A NAME="IDX154"></A> -<A NAME="IDX155"></A> -<A NAME="IDX156"></A> -Interpret the pattern as a Perl regular expression. -<P> - -</DL> -<P> - -In addition, two variant programs EGREP and FGREP are available. -EGREP is the same as <SAMP>`grep -E'</SAMP>. FGREP is the -same as <SAMP>`grep -F'</SAMP>. -</P><P> - -<A NAME="Regular Expressions"></A> -<HR SIZE=1> -<BR> -<FONT SIZE="-1"> -This document was generated -by <I>root</I> on <I>January, 23 2002</I> -using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html -"><I>texi2html</I></A> - -</BODY> -</HTML>
