There are many-many way to read file in bash script, look at the first section where I used while loop ...
linuxpoison.blogspot.com