CVSROOT: /web/grep Module name: grep Changes by: Karl Berry <karl> 09/05/24 18:43:01
Index: doc/grep_12.html =================================================================== RCS file: doc/grep_12.html diff -N doc/grep_12.html --- doc/grep_12.html 23 Jan 2002 10:33:52 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,75 +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: 5.5 Basic vs Extended</TITLE> - -<META NAME="description" CONTENT="grep, print lines matching a pattern: 5.5 Basic vs Extended"> -<META NAME="keywords" CONTENT="grep, print lines matching a pattern: 5.5 Basic vs Extended"> -<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="SEC12"></A> -<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0> -<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_11.html#SEC11"> < </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_13.html#SEC13"> > </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_7.html#SEC7"> Up </A>]</TD> -<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="grep_13.html#SEC13"> >> </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> -<H2> 5.5 Basic vs Extended </H2> -<!--docid::SEC12::--> -<P> - -In basic regular expressions the metacharacters <SAMP>`?'</SAMP>, <SAMP>`+'</SAMP>, -<SAMP>`{'</SAMP>, <SAMP>`|'</SAMP>, <SAMP>`('</SAMP>, and <SAMP>`)'</SAMP> lose their special meaning; -instead use the backslashed versions <SAMP>`\?'</SAMP>, <SAMP>`\+'</SAMP>, <SAMP>`\{'</SAMP>, -<SAMP>`\|'</SAMP>, <SAMP>`\('</SAMP>, and <SAMP>`\)'</SAMP>. -</P><P> - -<A NAME="IDX208"></A> -Traditional <CODE>egrep</CODE> did not support the <SAMP>`{'</SAMP> metacharacter, -and some <CODE>egrep</CODE> implementations support <SAMP>`\{'</SAMP> instead, so -portable scripts should avoid <SAMP>`{'</SAMP> in <SAMP>`egrep'</SAMP> patterns and -should use <SAMP>`[{]'</SAMP> to match a literal <SAMP>`{'</SAMP>. -</P><P> - -GNU <CODE>egrep</CODE> attempts to support traditional usage by -assuming that <SAMP>`{'</SAMP> is not special if it would be the start of an -invalid interval specification. For example, the shell command -<SAMP>`egrep '{1''</SAMP> searches for the two-character string <SAMP>`{1'</SAMP> -instead of reporting a syntax error in the regular expression. -POSIX.2 allows this behavior as an extension, but portable scripts -should avoid it. -</P><P> - -<A NAME="Usage"></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>
