Text Modification Edit Commands

   

Korn Shell: Unix and Linux Programming Manual, Third Edition, The
By Anatole Olczak

Table of Contents
Appendix E.  Korn Shell Man Page


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 mode and insert text before the current character.

I

Insert text before the beginning of the line. Equivalent to i.

[count]P

Place the previous text modification before the cursor.

[count]p

Place the previous text modification after the cursor.

R

Enter input mode and replace characters on the screen with characters you type overlay fashion.

[count]rc

Replace the count character(s) starting at the current cursor position with c, and advance the cursor.

[count]x

Delete current character.

[count]X

Delete preceding character.

[count].

Repeat the previous text modification command.

[count]~

Invert the case of the count character(s) starting at the current cursor position and advance the cursor.

[count]_

Causes the count word of the previous command to be appended and input mode entered. The last word is used if count is omitted. Causes an * to be appended to the current word and file name generation attempted. If no match is found, it rings the bell. Otherwise, the word is replaced by the matching pattern and input mode is entered.

\

Filename completion. Replaces the current word with the longest common prefix of all filenames matching the current word with an asterisk appended. If the match is unique, a / is appended if the file is a directory and a space is appended if the file is not a directory.


       
    Top
     



    Korn Shell. Unix and Linux Programming Manual, Third Edition
    Korn Shell. Unix and Linux Programming Manual, Third Edition
    ISBN: N/A
    EAN: N/A
    Year: 2000
    Pages: 177

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net