read file using while loop in shell script