OS X Useful Shell Script