BASH: Re-run Previous Command Performing Global Substitution
Join the DZone community and get the full member experience.
Join For FreeRe-run the previous command (accessed via !!) replacing 'foo' with 'bar' globally.
!!:gs/foo/bar/
Bash (Unix shell)
Command (computing)
Opinions expressed by DZone contributors are their own.
Comments