fixed bash function for logdog in the blog