some useful shell script on mac