Replacement Patterns
The characters in the following table have special meaning only in replacement patterns .
Character |
Pattern |
|
Turn off the special meaning of the following character. |
|
Reuse the text matched by the
nth subpattern previously saved by
|
|
Reuse the text matched by the search pattern as part of the replacement pattern. |
|
Reuse the previous replacement pattern in the current replacement pattern. Must be the only character in the replacement pattern (ex and vi). |
|
Reuse the previous replacement pattern in the current replacement pattern. Must be the only character in the replacement pattern (ed). |
|
Convert first character of replacement pattern to uppercase. |
|
Convert entire replacement pattern to uppercase. |
|
Convert first character of replacement pattern to lowercase. |
|
Convert entire replacement pattern to lowercase. |
|
Turn off previous |
|
Turn off previous |
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.