D7net Mini Sh3LL v1
Current File : /var/www/html/../../../usr/share/doc/run-one/../fakeroot/../info/html/Searching-Commands.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for Stand-alone GNU Info (version 6.7,
23 September 2019), a program for viewing documents in Info format
(usually created from Texinfo source files).
Copyright (C) 1992, 1993, 1996, 1997, 1998, 1999, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
2013, 2014, 2015, 2016, 2017, 2018, 2019 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" in the Texinfo manual.
This document is part of a collection distributed under the GNU Free
Documentation License. If you want to distribute this document
separately from the collection, you can do so by adding a copy of the
license to the document, as described in section 6 of the license. -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Searching Commands (Stand-alone GNU Info 6.7)</title>
<meta name="description" content="Searching Commands (Stand-alone GNU Info 6.7)">
<meta name="keywords" content="Searching Commands (Stand-alone GNU Info 6.7)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2any">
<link href="index.html" rel="start" title="Top">
<link href="Index.html" rel="index" title="Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html" rel="up" title="Top">
<link href="Index-Commands.html" rel="next" title="Index Commands">
<link href="Node-Commands.html" rel="prev" title="Node Commands">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<span id="Searching-Commands"></span><div class="header">
<p>
Next: <a href="Index-Commands.html" accesskey="n" rel="next">Index Commands</a>, Previous: <a href="Node-Commands.html" accesskey="p" rel="prev">Node Commands</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<span id="Searching-an-Info-File"></span><h2 class="chapter">6 Searching an Info File</h2>
<span id="index-searching"></span>
<p>GNU Info allows you to search for a sequence of characters throughout an
entire Info file. Here are the commands to do this:
</p>
<dl compact="compact">
<dt><kbd>s</kbd> (<code>search</code>)</dt>
<dt><kbd>/</kbd></dt>
<dd><span id="index-s"></span>
<span id="index-_002f"></span>
<span id="index-search"></span>
<span id="index-regular-expression-search"></span>
<p>Read a string in the echo area and search for it, either as a regular
expression (by default) or a literal string. If the string includes
upper-case characters, the Info file is searched case-sensitively;
otherwise Info ignores the letter case. With a numeric argument of
<var>N</var>, search for <var>N</var>th occurrence of the string. Negative
arguments search backwards.
</p>
</dd>
<dt><kbd>?</kbd> (<code>search-backward</code>)</dt>
<dd><span id="index-_003f"></span>
<span id="index-search_002dbackward"></span>
<p>Read a string in the echo area and search backward through the Info file
for that string. If the string includes upper-case characters, the Info
file is searched case-sensitively; otherwise Info ignores the letter
case. With a numeric argument of <var>N</var>, search for <var>N</var>th
occurrence of the string. Negative arguments search forward.
</p>
<span id="repeated_002dsearch"></span></dd>
<dt><kbd>C-x <kbd>n</kbd></kbd> (<code>search-next</code>)</dt>
<dt><kbd>}</kbd></dt>
<dd><span id="index-C_002dx-n"></span>
<span id="index-_007d"></span>
<span id="index-search_002dnext"></span>
<span id="index-repeated-search"></span>
<p>Search forwards for the string used for the last search command.
Case sensitivity and use of regular expressions are kept the same. With
a numeric argument of <var>n</var>, search for <var>n</var>th next occurrence.
</p>
<p>By default, the search starts at the position immediately following
the cursor. However, if the variable <code>search-skip-screen</code>
(see <a href="Variables.html"><code>search-skip-screen</code></a>) is set, it starts at
the beginning of the next page, thereby skipping all visibly displayed
lines.
</p>
</dd>
<dt><kbd>C-x <kbd>N</kbd></kbd> (<code>search-previous</code>)</dt>
<dt><kbd>{</kbd></dt>
<dd><span id="index-C_002dx-N"></span>
<span id="index-_007b"></span>
<span id="index-search_002dprevious"></span>
<p>Just like <code>search-next</code>, but in reverse. You can use
<code>search-next</code> and <code>search-previous</code> together to move forward
and backward through matches. <code>search-previous</code> usually goes to
the place in the file that was displayed before an immediately preceding
<code>search-next</code>, and vice versa.<a id="DOCF3" href="#FOOT3"><sup>3</sup></a>
</p>
</dd>
<dt><kbd>R</kbd> (<code>toggle-regexp</code>)</dt>
<dd><span id="index-R"></span>
<span id="index-toggle_002dregexp"></span>
<p>Toggle between using regular expressions and literal strings for
searching. Info uses so-called ‘extended’ regular expression syntax
(see <a href="../grep/Regular-Expressions.html#Regular-Expressions">Regular Expressions</a> in <cite>GNU Grep</cite>).
</p>
</dd>
<dt><kbd>S</kbd> (<code>search-case-sensitively</code>)</dt>
<dd><span id="index-S"></span>
<span id="index-search_002dcase_002dsensitively"></span>
<span id="index-search_002c-case_002dsensitive"></span>
<span id="index-case_002dsensitive-search"></span>
<p>Read a string in the echo area and search for it case-sensitively, even
if the string includes only lower-case letters. With a numeric argument
of <var>N</var>, search for <var>N</var>th occurrence of the string. Negative
arguments search backwards.
</p>
</dd>
<dt><kbd>C-s</kbd> (<code>isearch-forward</code>)</dt>
<dd><span id="index-C_002ds"></span>
<span id="index-isearch_002dforward"></span>
<span id="index-incremental-search"></span>
<p>Interactively search forward through the Info file for a string as you
type it. If the string includes upper-case characters, the search is
case-sensitive; otherwise Info ignores the letter case.
</p>
</dd>
<dt><kbd>C-r</kbd> (<code>isearch-backward</code>)</dt>
<dd><span id="index-C_002dr"></span>
<span id="index-isearch_002dbackward"></span>
<p>Interactively search backward through the Info file for a string as
you type it. If the string includes upper-case characters, the search
is case-sensitive; otherwise Info ignores the letter case.
</p>
</dd>
<dt><kbd>M-/</kbd> (<code>tree-search</code>)</dt>
<dd><span id="index-tree_002dsearch"></span>
<p>Recursively search this node and any subnodes listed in menus for a
string.
</p>
</dd>
<dt><kbd>M-}</kbd> (<code>tree-search-next</code>)</dt>
<dt><kbd>M-{</kbd> (<code>tree-search-previous</code>)</dt>
<dd><span id="index-tree_002dsearch_002dnext"></span>
<span id="index-tree_002dsearch_002dprevious"></span>
<p>Go forwards and backwards through the matches for an active tree search.
</p></dd>
</dl>
<p>The most basic searching command is ‘<samp>s</samp>’ or ‘<samp>/</samp>’
(<code>search</code>). The ‘<samp>s</samp>’ command prompts you for a string in the
echo area, and then searches the remainder of the Info file for an
occurrence of that string. If the string is found, the node containing
it is selected, and the cursor is left positioned at the start of the
found string. Subsequent ‘<samp>s</samp>’ commands show you the default search
string; pressing <tt class="key">RET</tt> instead of typing a new string will use the
default search string.
</p>
<p><em>Incremental searching</em> is similar to basic searching, but the
string is looked up while you are typing it, instead of waiting until
the entire search string has been specified.
</p>
<p>The tree search can be used from the <code>dir</code> node to search through
all Info files installed on the system. It can also be used to search
through a particular chapter of a manual when you are not interested in
matches in other chapters.
</p>
<span id="index-highlight_002dsearches"></span>
<span id="index-clear_002dsearch"></span>
<p>If the <code>highlight-searches</code> variable is set, matches from search
commands will be highlighted. See <a href="Variables.html"><code>highlight-searches</code></a>.
Use the <kbd>M-x clear-search</kbd> command to clear any search highlights.
</p>
<span id="index-search_002c-and-case_002dsensitivity"></span>
<span id="index-case_002dsensitivity_002c-and-search"></span>
<p>Both incremental and non-incremental search by default ignore the case
of letters when comparing the Info file text with the search string.
However, an uppercase letter in the search string makes the search
case-sensitive. You can force a case-sensitive non-incremental search,
even for a string that includes only lower-case letters, by using the
‘<samp>S</samp>’ command (<code>search-case-sensitively</code>). The ‘<samp>n</samp>’ and
‘<samp>N</samp>’ commands operate case-sensitively if the last search command
was ‘<samp>S</samp>’.
</p>
<p>Normally, the search pattern should not be shorter than some
predefined limit. By default, this limit is set to 1 character.
See <a href="Variables.html#min_002dsearch_002dlength">min-search-length</a> for more information on this.
</p>
<div class="footnote">
<hr>
<h4 class="footnotes-heading">Footnotes</h4>
<h5><a id="FOOT3" href="#DOCF3">(3)</a></h3>
<p>This sometimes doesn’t
happen when <code>search-skip-screen</code> is <code>On</code>, and the search goes
across nodes.</p>
</div>
<hr>
<div class="header">
<p>
Next: <a href="Index-Commands.html" accesskey="n" rel="next">Index Commands</a>, Previous: <a href="Node-Commands.html" accesskey="p" rel="prev">Node Commands</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index.html" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
AnonSec - 2021 | Recode By D7net