Adding the bash script. h/t Greg Dickerson

I didn't write any of this, all credit to Greg Dickerson.