Open file line by line in shell script
From http://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash