AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

KSH ( 1) KSH ( 1) [count]Tc Equivalent to F followed by I. Repeats the last single character find command, r, F, t, or T. Reverses the last single character find command. 0 Cursor to start of line. Cursor to first non-blank character in line. $ Cursor to end of line. Search Edit Commands These commands access your command history. [count]k Fetch previous command. Each time k is entered the previous command back in time is accessed. [count]­ [ count]j Equivalent to k. Fetch next command. Each time j is entered the next command forward in time is accessed. [count]+ Equivalent to j . [count]G The command number count is fetched. The default is the least recent history command. I string Search backward through history for a previous command containing string . String is terminated by a "RETURN" or "NEW LINE". -� If string is null the previous string will be used. ? string Same as I except that search will be in the forward direction. n Search for next match of the last pattern to I or ? commands. N Search for next match of the last pattern to I or ?, but in reverse direction. I Search history for the string entered by the previous I command. 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 ]emotion c[ count] motion Delete current character through the character motion moves the cursor to and enter input mode. If motion is c, the entire line will be deleted and input mode entered. - 18 -

KSH ( 1 ) KSH ( 1) c Delete the current character through the end of line and enter input mode. Equivalent to c$. D Delete the current character through the end of line. [count ]d motion d [count] motion Delete current character through the character motion moves the cursor to. Equivalent to d$. If motion is d, the entire line will be deleted. Enter input mode and insert text before the current character. I Insert text before the beginning of the line. Equivalent to the two character sequence '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. rc Replace the current character with c. [count]x Delete current character. [count]X Delete preceding character. [count]. Repeat the previous text modification command. Invert the case of the current character 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. Other Edit Commands Miscellaneous commands. u Undo the last text modifying command. U Undo all the text modifying commands performed on the line. [count]v Returns the command fc -e ${VISUAL:-${EDITOR:-vi}} count in the input buffer. If count is omitted, then the current line is used. - 19 -

KSH ( 1 )<br />

KSH ( 1)<br />

c Delete the current character through the end<br />

of line and enter input mode. Equivalent to<br />

c$.<br />

D Delete the current character through the end<br />

of line.<br />

[count ]d motion<br />

d [count] motion<br />

Delete current character through the character<br />

motion moves the cursor to. Equivalent to d$.<br />

If motion is d, the entire line will be deleted.<br />

Enter input mode and insert text before the<br />

current character.<br />

I Insert text before the beginning of the line.<br />

Equivalent to the two character sequence 'i.<br />

[ count]P Place the previous text modification before the<br />

cursor.<br />

[count]p Place the previous text modification after the<br />

cursor.<br />

R Enter input mode and replace characters on<br />

the screen with characters you type overlay<br />

fashion.<br />

rc Replace the current character with c.<br />

[count]x Delete current character.<br />

[count]X Delete preceding character.<br />

[count]. Repeat the previous text modification command.<br />

Invert the case of the current character and<br />

advance the cursor.<br />

[count]_ Causes the count word of the previous command<br />

to be appended and input mode entered.<br />

The last word is used if count is omitted.<br />

... Causes an • to be appended to the current<br />

word and file name generation attempted. If<br />

no match is found, it rings the bell. Otherwise,<br />

the word is replaced by the matching<br />

pattern and input mode is entered.<br />

Other Edit Commands<br />

Miscellaneous commands.<br />

u Undo the last text modifying command.<br />

U Undo all the text modifying commands performed<br />

on the line.<br />

[count]v Returns the command fc -e<br />

${VISUAL:-${EDITOR:-vi}} count in the<br />

input buffer. If count is omitted, then the<br />

current line is used.<br />

- 19 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!