grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to manual/html_node/grep-Programs.html


From: Karl Berry
Subject: Changes to manual/html_node/grep-Programs.html
Date: Sun, 24 May 2009 18:43:11 +0000

CVSROOT:        /web/grep
Module name:    grep
Changes by:     Karl Berry <karl>       09/05/24 18:43:01

Index: manual/html_node/grep-Programs.html
===================================================================
RCS file: manual/html_node/grep-Programs.html
diff -N manual/html_node/grep-Programs.html
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ manual/html_node/grep-Programs.html 24 May 2009 18:43:00 -0000      1.1
@@ -0,0 +1,84 @@
+<html lang="en">
+<head>
+<title>grep Programs - GNU Grep 2.5.4</title>
+<meta http-equiv="Content-Type" content="text/html">
+<meta name="description" content="GNU Grep 2.5.4">
+<meta name="generator" content="makeinfo 4.13">
+<link title="Top" rel="start" href="index.html#Top">
+<link rel="up" href="Invoking.html#Invoking" title="Invoking">
+<link rel="prev" href="Exit-Status.html#Exit-Status" title="Exit Status">
+<link href="http://www.gnu.org/software/texinfo/"; rel="generator-home" 
title="Texinfo Homepage">
+<!--
+This manual is for `grep', a pattern matching engine.
+
+Copyright (C) 1999, 2000, 2001, 2002, 2005, 2008, 2009 Free
+Software Foundation, Inc.
+
+     Permission is granted to copy, distribute and/or modify this
+     document under the terms of the GNU Free Documentation License,
+     Version 1.3 or any later version published by the Free Software
+     Foundation; with no Invariant Sections, with no Front-Cover Texts,
+     and with no Back-Cover Texts.  A copy of the license is included
+     in the section entitled ``GNU Free Documentation License''.
+   -->
+<meta http-equiv="Content-Style-Type" content="text/css">
+<style type="text/css"><!--
+  pre.display { font-family:inherit }
+  pre.format  { font-family:inherit }
+  pre.smalldisplay { font-family:inherit; font-size:smaller }
+  pre.smallformat  { font-family:inherit; font-size:smaller }
+  pre.smallexample { font-size:smaller }
+  pre.smalllisp    { font-size:smaller }
+  span.sc    { font-variant:small-caps }
+  span.roman { font-family:serif; font-weight:normal; } 
+  span.sansserif { font-family:sans-serif; font-weight:normal; } 
+--></style>
+</head>
+<body>
+<div class="node">
+<a name="grep-Programs"></a>
+<p>
+Previous:&nbsp;<a rel="previous" accesskey="p" 
href="Exit-Status.html#Exit-Status">Exit Status</a>,
+Up:&nbsp;<a rel="up" accesskey="u" href="Invoking.html#Invoking">Invoking</a>
+<hr>
+</div>
+
+<h3 class="section">2.4 <samp><span class="command">grep</span></samp> 
Programs</h3>
+
+<p><a name="index-g_t_0040command_007bgrep_007d-programs-164"></a><a 
name="index-variants-of-_0040command_007bgerp_007d-165"></a>
+<samp><span class="command">grep</span></samp> searches the named input files
+(or standard input if no files are named,
+or the file name <samp><span class="file">-</span></samp> is given)
+for lines containing a match to the given pattern. 
+By default, <samp><span class="command">grep</span></samp> prints the matching 
lines. 
+There are four major variants of <samp><span 
class="command">grep</span></samp>,
+controlled by the following options.
+
+     <dl>
+<dt>&lsquo;<samp><span 
class="samp">-G</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--basic-regexp</span></samp>&rsquo;<dd><a 
name="index-g_t_002dG-166"></a><a 
name="index-g_t_002d_002dbasic_002dregexp-167"></a><a 
name="index-matching-basic-regular-expressions-168"></a>Interpret the pattern 
as a basic regular expression (BRE). 
+This is the default.
+
+     <br><dt>&lsquo;<samp><span 
class="samp">-E</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--extended-regexp</span></samp>&rsquo;<dd><a 
name="index-g_t_002dE-169"></a><a 
name="index-g_t_002d_002dextended_002dregexp-170"></a><a 
name="index-matching-extended-regular-expressions-171"></a>Interpret the 
pattern as an extended regular expression (ERE). 
+(&lsquo;<samp><span class="samp">-E</span></samp>&rsquo; is specified by <span 
class="sc">posix</span>.)
+
+     <br><dt>&lsquo;<samp><span 
class="samp">-F</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--fixed-strings</span></samp>&rsquo;<dd><a 
name="index-g_t_002dF-172"></a><a 
name="index-g_t_002d_002dfixed_002dstrings-173"></a><a 
name="index-matching-fixed-strings-174"></a>Interpret the pattern as a list of 
fixed strings, separated
+by newlines, any of which is to be matched. 
+(&lsquo;<samp><span class="samp">-F</span></samp>&rsquo; is specified by <span 
class="sc">posix</span>.)
+
+     <br><dt>&lsquo;<samp><span 
class="samp">-P</span></samp>&rsquo;<dt>&lsquo;<samp><span 
class="samp">--perl-regexp</span></samp>&rsquo;<dd><a 
name="index-g_t_002dP-175"></a><a 
name="index-g_t_002d_002dperl_002dregexp-176"></a><a 
name="index-matching-Perl-regular-expressions-177"></a>Interpret the pattern as 
a Perl regular expression. 
+This is highly experimental and
+&lsquo;<samp><span class="samp">grep -P</span></samp>&rsquo; may warn of 
unimplemented features.
+
+   </dl>
+
+   <p>In addition,
+two variant programs <samp><span class="command">egrep</span></samp> and 
<samp><span class="command">fgrep</span></samp> are available. 
+<samp><span class="command">egrep</span></samp> is the same as 
&lsquo;<samp><span class="samp">grep -E</span></samp>&rsquo;. 
+<samp><span class="command">fgrep</span></samp> is the same as 
&lsquo;<samp><span class="samp">grep -F</span></samp>&rsquo;. 
+Direct invocation as either
+<samp><span class="command">egrep</span></samp> or <samp><span 
class="command">fgrep</span></samp> is deprecated,
+but is provided to allow historical applications
+that rely on them to run unmodified.
+
+   </body></html>
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]