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.

^string1^string2

^string1^

^string1^string2^string3