Initial bash script commit

Sanitized version of script running on OSX 10.9.4 as a cron job.