sh-posix.1 (2010 09)

s
sh-posix(1) sh-posix(1)
the next character’s editing features (if any).
^W Delete the previous blank-separated word.
Motion Edit Commands
These commands move the cursor. The use of count causes a repetition of the command the cited number
of times.
[count]
l Cursor forward (right) one character.
[count]
w Cursor forward one alphanumeric word.
[count]
W Cursor forward to the beginning of the next word that follows a blank.
[count]
e Cursor forward to the end of the word.
[count]
E Cursor forward to end of the current blank-delimited word.
[count]
h Cursor backward (left) one character.
[count]
b Cursor backward one word.
[count]
B Cursor backward to preceding blank-separated word.
[count]
| Cursor to column count . Default is 1.
[count]
fc Find the next character c in the current line.
[count]
Fc Find the previous character c in the current line.
[count]
tc Equivalent to fc followed by h.
[count]
Tc Equivalent to Fc followed by l.
[count]
; Repeat the last single-character find command,
f, F, t,orT.
[count]
, Reverses the last single character find command.
0 Cursor to start of line.
^ Cursor to first nonblank character in line.
$ Cursor to end of line.
History Search Commands
These commands access your command history file.
[count]k Fetch previous command. Each time k is entered, the next earlier command in the
history list is accessed.
[count]
- Equivalent to k.
[count]
j Fetch next command. Each time j is entered, the next later command in the his-
tory list is accessed.
[count]
+ Equivalent to j.
[count]
G The command number count is fetched. The default is the first command in the his-
tory list.
/string Search backward through history for a previous command containing string . string
is terminated by a return or newline. If string is preceded by a ˆ, the matched line
must begin with string .Ifstring is null, the previous string is used.
?string Same as /, but search in the forward direction.
n Search for next match of the last pattern to the / or ? commands.
N Search for next match of the last pattern to / or ?, but in reverse direction.
Text Modification Edit Commands
These commands will modify the line.
a Enter insert mode after the current character.
A Append text to the end of the line. Equivalent to $a.
24 Hewlett-Packard Company 24 HP-UX 11i Version 3: September 2010