SED - Changing Text
Replace (Ctrl-X R)
The replace function prompts for a search string and a replacement string. All occurrences of the search string from the current cursor position to the end of the record are replaced by the replacement string. Search modes are applied as described for the forward search function.
When a replace is included in a macro, the prompt for the search and replacement strings only occurs when collecting the macro. Subsequent executions use the same strings. Multiple replace functions in a macro may have different strings.
Query replace (Ctrl-X Q)
This function is like the replace function except that a prompt is issued for each possible replacement. Entering a space causes replacement to occur, the return key causes no replacement and Ctrl-G causes the function to be aborted. Search modes are applied as described for the forward search function.
Capital init (Esc-C)
This function locates the next word in the record and converts it so that the first letter is in uppercase and the remainder is in lowercase.
This function locates the next word in the record and converts it to lowercase.
This function locates the next word in the record and converts it to uppercase.
Toggle chars (Ctrl-T)
The character at the cursor position and the preceding character are interchanged. This function has no effect if the cursor is at the start of the line or beyond the end of the line.
Close spaces (Esc-space)
All spaces surrounding the current cursor position are replaced by a single space.