Monthly Archives: December 2010

Bash History Tricks

Here are a few bash history tricks that I seem to forget so I figured this was as good of a place as any to keep them written down for future reference.

Replace first instance of old with new in previous command.

^old^new

Replace all instances of old with new in the previous command.

!!:gs/old/new/