Update bash.md
This commit is contained in:
parent
ef9f00aa5c
commit
d5683a9ddf
4
bash.md
4
bash.md
|
@ -564,6 +564,8 @@ History
|
|||
|
||||
### Operations
|
||||
|
||||
| Code | Description |
|
||||
| -------------------- | --------------------------------------------------------------------- |
|
||||
| `!!` | Execute last command again |
|
||||
| `!!:s/<FROM>/<TO>/` | Replace first occurrence of `<FROM>` to `<TO>` in most recent command |
|
||||
| `!!:gs/<FROM>/<TO>/` | Replace all occurrences of `<FROM>` to `<TO>` in most recent command |
|
||||
|
@ -574,6 +576,8 @@ History
|
|||
|
||||
### Slices
|
||||
|
||||
| Code | Description |
|
||||
| -------- | ---------------------------------------------------------------------------------------- |
|
||||
| `!!:n` | Expand only `n`th token from most recent command (command is `0`; first argument is `1`) |
|
||||
| `!^` | Expand first argument from most recent command |
|
||||
| `!$` | Expand last token from most recent command |
|
||||
|
|
Loading…
Reference in New Issue