Next: Word Designators, Up: History Interaction [Contents][Index]
An event designator is a reference to a command line entry in the history list. Unless the reference is absolute, events are relative to the current position in the history list.
!
=
’ or ‘(
’ (when the extglob
shell option is enabled using the shopt
builtin).!n
n
.!-n
n
lines back.!!
!-1
’.!string
string
.!?string[?]
string
. The trailing ‘?
’ may be omitted if the string
is followed immediately by a newline.^string1^string2^
string1
with string2
. Equivalent to !!:s/string1/string2/
.!#