Text Modification Edit Commands

These commands will modify the line.

a Enter input mode and enter text after the current character.
A Append text to the end of the line. Equivalent to $a.
[count]cmotion c[count]motion Delete current character through the character that motion would move the cursor to and enter input mode. If motion is c, the entire line will be deleted and input mode entered.
C Delete the current character through the end of line and enter input mode c$. Equivalent to c$.
S Equivalent to cc.
D Delete the current character through the end of line. Equivalent to d$.
[count]dmotion d[count]motion Delete current character through the character that motion would move to. If motion is d, the entire line will be deleted.
i Enter input ...

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The 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.