for loop in unix shell script to read a file