Global replace

Global replace

To replace every occurrence of a piece of text from the cursor to the end of the file:

1. Type M-R.

   Replace []<META>:

2. Type in the text you want to replace and press the META key.

You will then be prompted for the new text, with a prompt like this:

   with []<META>:

3. Type in the new text and press the META key

All the occurrences of the old text will be replaced by the new and the number of changes printed at the bottom of your screen, for example:

   36 substitutions

[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:29 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.