[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to manual/html_node/Matching-Control.html
From: |
Karl Berry |
Subject: |
Changes to manual/html_node/Matching-Control.html |
Date: |
Sun, 24 May 2009 18:43:10 +0000 |
CVSROOT: /web/grep
Module name: grep
Changes by: Karl Berry <karl> 09/05/24 18:43:01
Index: manual/html_node/Matching-Control.html
===================================================================
RCS file: manual/html_node/Matching-Control.html
diff -N manual/html_node/Matching-Control.html
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ manual/html_node/Matching-Control.html 24 May 2009 18:42:59 -0000
1.1
@@ -0,0 +1,82 @@
+<html lang="en">
+<head>
+<title>Matching Control - 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="Command_002dline-Options.html#Command_002dline-Options"
title="Command-line Options">
+<link rel="prev"
href="Generic-Program-Information.html#Generic-Program-Information"
title="Generic Program Information">
+<link rel="next" href="General-Output-Control.html#General-Output-Control"
title="General Output Control">
+<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="Matching-Control"></a>
+<p>
+Next: <a rel="next" accesskey="n"
href="General-Output-Control.html#General-Output-Control">General Output
Control</a>,
+Previous: <a rel="previous" accesskey="p"
href="Generic-Program-Information.html#Generic-Program-Information">Generic
Program Information</a>,
+Up: <a rel="up" accesskey="u"
href="Command_002dline-Options.html#Command_002dline-Options">Command-line
Options</a>
+<hr>
+</div>
+
+<h4 class="subsection">2.1.2 Matching Control</h4>
+
+ <dl>
+<dt>‘<samp><span class="samp">-e
</span><var>pattern</var></samp>’<dt>‘<samp><span
class="samp">--regexp=</span><var>pattern</var></samp>’<dd><a
name="index-g_t_002de-7"></a><a
name="index-g_t_002d_002dregexp_003d_0040var_007bpattern_007d-8"></a><a
name="index-pattern-list-9"></a>Use <var>pattern</var> as the pattern.
+This can be used to specify multiple search patterns,
+or to protect a pattern beginning with a ‘<samp><span
class="samp">-</span></samp>’.
+(‘<samp><span class="samp">-e</span></samp>’ is specified by <span
class="sc">posix</span>.)
+
+ <br><dt>‘<samp><span class="samp">-f
</span><var>file</var></samp>’<dt>‘<samp><span
class="samp">--file=</span><var>file</var></samp>’<dd><a
name="index-g_t_002df-10"></a><a name="index-g_t_002d_002dfile-11"></a><a
name="index-pattern-from-file-12"></a>Obtain patterns from <var>file</var>, one
per line.
+The empty file contains zero patterns, and therefore matches nothing.
+(‘<samp><span class="samp">-f</span></samp>’ is specified by <span
class="sc">posix</span>.)
+
+ <br><dt>‘<samp><span
class="samp">-i</span></samp>’<dt>‘<samp><span
class="samp">-y</span></samp>’<dt>‘<samp><span
class="samp">--ignore-case</span></samp>’<dd><a
name="index-g_t_002di-13"></a><a name="index-g_t_002dy-14"></a><a
name="index-g_t_002d_002dignore_002dcase-15"></a><a
name="index-case-insensitive-search-16"></a>Ignore case distinctions in both
the pattern and the input files.
+‘<samp><span class="samp">-y</span></samp>’ is an obsolete synonym
that is provided for compatibility.
+(‘<samp><span class="samp">-i</span></samp>’ is specified by <span
class="sc">posix</span>.)
+
+ <br><dt>‘<samp><span
class="samp">-v</span></samp>’<dt>‘<samp><span
class="samp">--invert-match</span></samp>’<dd><a
name="index-g_t_002dv-17"></a><a
name="index-g_t_002d_002dinvert_002dmatch-18"></a><a
name="index-invert-matching-19"></a><a
name="index-print-non_002dmatching-lines-20"></a>Invert the sense of matching,
to select non-matching lines.
+(‘<samp><span class="samp">-v</span></samp>’ is specified by <span
class="sc">posix</span>.)
+
+ <br><dt>‘<samp><span
class="samp">-w</span></samp>’<dt>‘<samp><span
class="samp">--word-regexp</span></samp>’<dd><a
name="index-g_t_002dw-21"></a><a
name="index-g_t_002d_002dword_002dregexp-22"></a><a
name="index-matching-whole-words-23"></a>Select only those lines containing
matches that form whole words.
+The test is that the matching substring must either
+be at the beginning of the line,
+or preceded by a non-word constituent character.
+Similarly,
+it must be either at the end of the line
+or followed by a non-word constituent character.
+Word-constituent characters are letters, digits, and the underscore.
+
+ <br><dt>‘<samp><span
class="samp">-x</span></samp>’<dt>‘<samp><span
class="samp">--line-regexp</span></samp>’<dd><a
name="index-g_t_002dx-24"></a><a
name="index-g_t_002d_002dline_002dregexp-25"></a><a
name="index-match-the-whole-line-26"></a>Select only those matches that exactly
match the whole line.
+(‘<samp><span class="samp">-x</span></samp>’ is specified by <span
class="sc">posix</span>.)
+
+</dl>
+
+ </body></html>
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to manual/html_node/Matching-Control.html,
Karl Berry <=