http://www.theunixschool.com/2011/05/awk-read-file-and-split-contents.html