bash exmaple from bash.cyberciti.biz/guide/Chapter_2_Challenges