! Start a history substitution, except when followed by a blank,
newline, = or (.
!n Refer to command line n.
!-n Refer to the current command line minus n.
!! Refer to the previous command. This is a synonym for `!-1'.
!string
Refer to the most recent command starting with string.
!?string[?]
Refer to the most recent command containing string. The trail-
ing ? may be omitted if string is followed immediately by a new-
line.
^string1^string2^
Quick substitution. Repeat the last command, replacing string1
with string2. Equivalent to ``!!:s/string1/string2/'' (see Mod-
ifiers below).
!# The entire command line typed so far.作者: hwxo 时间: 2008-08-13 11:47
多谢楼上的兄弟。
man bash,没试过,我好好看看先。作者: blackold 时间: 2008-08-13 11:48 标题: 回复 #1 hwxo 的帖子 history expansion吧。作者: wtuter 时间: 2008-08-15 03:47
":"什么意思