Bash Hostory String Replacement

Found this tidbit here:

With Bash history, ^string1^string2^ will repeat the previous command replacing string1 with string2. For example:

nslookup shorturlbl.ca
^shorturlbl^snork^
tips/bash_history_string_replacement.txt · Last modified: 2023-08-06 19:13 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki