while read line do #do something with the line variable, echo it for instance echo ${line} done < "file.txt"