It is easy to read a file in a bash shell script using while loop.
FileName='example.txt'
while read LINE
do
echo $LINE
done < $FileName
FileName='example.txt'
while read LINE
do
echo $LINE
done < $FileName
Here, I post stuff that i have got chance to explore. I put in the links to the articles that i find most suitable, and as i explore the topic more i add my own comments as well.