There is a while construct for the shell.
read is bash built in function which can read a line from stdin.
but it only takes space delimited data
while read var1 var2
echo $var1 $var2
This might help you reach EOF as an example, I would rather prefer you
to write a small perl script
I would like to check the situation of EOF .Consider a situation where i am
displaying certain records from a flat file ..
o.com> cc: ilugc@xxxxxxxxxxxxxxxxxx
Subject: Re: [Ilugc]
[OFFTOPIC]Unix Shell Script
How do we check end of file (EOF) in shell Script.
Where do you want to do this? and how do you want to do this