|
try using a while loop instead...your issue seems to be because of the echo command
while read line
do
echo $line
done < "filename"
if you want the line number also:
i=1;while read line; do echo "$i $line";i=`expr $i + 1`; done < "filename"
cheers,
Devaraj Takhellambam
|