File: ReplaceOnce.html

package info (click to toggle)
ne 2.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,540 kB
  • ctags: 3,408
  • sloc: ansic: 24,666; perl: 500; makefile: 207; sh: 9
file content (49 lines) | stat: -rw-r--r-- 2,071 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html lang="en">
<head>
<title>ReplaceOnce - ne's manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="ne's manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Search-Commands.html#Search-Commands" title="Search Commands">
<link rel="prev" href="Replace.html#Replace" title="Replace">
<link rel="next" href="ReplaceAll.html#ReplaceAll" title="ReplaceAll">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<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="ReplaceOnce"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="ReplaceAll.html#ReplaceAll">ReplaceAll</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Replace.html#Replace">Replace</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Search-Commands.html#Search-Commands">Search Commands</a>
<hr>
</div>

<h4 class="subsection">4.5.4 ReplaceOnce</h4>

<p><a name="index-ReplaceOnce-110"></a>
Syntax: <code>ReplaceOnce [</code><var>string</var><code>]</code><br>
Abbreviation: <code>R1</code>

<p class="noindent">acts just like <code>Replace</code>, but without any interaction with you
(unless there is no find string). The first string matched by the last search
pattern, if it exists, is replaced by the given replacement string.

   <p>If the optional argument <var>string</var> is not specified, you can enter it on
the input line, the default being the last string used.

   </body></html>