Shell (Technical Help)
Command line history is very similar to such Un*x shells as csh. To
list the recently typed command, type 'history'. To repeat a command,
you may use one of the types of history access listed below:
- !<command number> - This will repeat the command <command number>.
- !<string pattern> - This will match the most recent command which
starts with <string pattern>.
- !! - This will repeat the last command.
- !!<args> - This will append <args> to the last command,
and execute it.
- !<args>! - This will prepend <args> to the last command,
and execute it.
- !<pattern 1>!<pattern 2> - This will substitute <pattern 1> in the last
command with <pattern 2>, and execute it.
Examples:
(Sample history list. Typing 'history' will show you your list!)
7 grovel
8 kill orc
9 knock on east door
10 bounce
11 look
Example commands working on the above history:
- !7 - would cause you to "grovel"
- !-2 - would cause you to "bounce"
- !k - would cause you to "knock on east door"
- !ki - would cause you to "kill orc"
- !! - would cause you to "look"
- !! board - would cause you to "look board"
- !help ! - would cause you to "help look" (note the space in "!help !")
- !ook!s - would cause you to "ls"