blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
index.gif

ntcmds00000000.gif

Edlin: R (Replace)--Notes

Command-line spacing

You must not insert a space between the r and any subsequent parameter on the command line.

Default settings

If you omit the line1 parameter, Edlin begins the search on the line after the current line. If you omit the line2 parameter, Edlin stops the search at the end of the file or at the end of the portion of text in memory.

If you omit the string1 parameter, Edlin uses the more recently used of the following two values: the value that you specified for string1 the last time you used the r command or the value that you specified for string the last time you used the s command during this session. If you omit string1 and you have not used the r or s command yet during the editing session, the command stops.

If you omit the string2 parameter, Edlin uses the value you specified the last time you used the r command during this session. If you omit the string2 parameter and you have not used the r command yet during this session, Edlin deletes all occurrences of the string that is specified for string1.

Using the separator parameter

You must separate the string1 and string2 values by using the CTRL+Z key combination. Even if you omit string1, you need to press CTRL+Z to mark the beginning of string2. When you press the CTRL+Z key combination, the characters displayed are not "CTRL+Z". Instead, you see the following:

^Z

Using the question mark (?)

If you include the ? parameter in your command, Edlin displays the line containing the first occurrence of the string specified for string1 and prompts you by displaying the following confirmation message:

O.K.? _

If you press Y (for yes) or press ENTER, Edlin replaces this occurrence of the value for string1 with the value for string2 and searches for the next occurrence. If you press N (for no), Edlin does not replace this occurrence of the value for string1 and searches for the next occurrence.

If you do not use the question mark (?)

If you do not use the ? parameter to confirm replacements as they are made, Edlin makes all the replacements at once and then displays each line that contains a replacement. If a line contains two or more replacements, Edlin displays the line once for each replacement.

More Information About Edlin: R

ntcmds00000001.gif Edlin: R--Examples

ntcmds00000001.gif Edlin: R

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609