Syntax: Bash history search and replace the command args

The syntax is as follows for quick substitution and repeat the last command, replacing word1 with word2:

^WORD1^WORD2^

OR

!!:s/WORD1/WORD2

OR

!!:gs/WORD1/WORD2

via
Bash History: Correct / Repeat The Last Command With a Substitution.

Annunci