Nifty unix command

Here’s a quick one for ya, execute a previously run command

$ history | grep firefox
  176  /Applications/Firefox.app/Contents/MacOS/firefox
  177  /Applications/Firefox.app/Contents/MacOS/firefox
$ !176
/Applications/Firefox.app/Contents/MacOS/firefox

Simple and nifty enough ay, grep history for w/e you’re looking for and then bang the number :D

-Matt

02 May 2012