History recall allows a previous statement to be quickly recalled and re-executed. It's a very fast shorthand, especially in the edit/compile/debug loop or to fix a typo. For convenience, "!" is taken as an ordinary character if followed by white space, "=", "~" or "(".
If you want, you can choose different characters to introduce history references by changing the histchars variable.
Command
Meaning
!! Last command !^ First argument word of last command !$ Last word of last command !* All arguments of last command !n Command n !-n nth command from the last !str Last command starting with str !?str? Last command containing str %str1%str2% Substitute str2 for str1 in last command. (Used only at the beginning of a line.)
Previous Topic |
Table of Contents
| Next Topic
Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.