^: add page (#12341)

* ^: add page 

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
pull/23/head
Managor 2024-02-24 16:37:56 +02:00 committed by GitHub
parent 00912fda0c
commit 653f08a81a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

17
pages/common/^.md Normal file
View File

@ -0,0 +1,17 @@
# Caret
> Bash builtin to quick substitute a string in the previous command and run the result.
> Equivalent to `!!:s^string1^string2`.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
- Run the previous command replacing `string1` with `string2`:
`^{{string1}}^{{string2}}`
- Remove `string1` from the previous command:
`^{{string1}}^`
- Replace `string1` with `string2` in the previous command and add `string3` to its end:
`^{{string1}}^{{string2}}^{{string3}}`