I want to read a text file line by line and below is the shell script which I used.I am getting the exception as below :
fileReader.sh: line 8: syntax error near unexpected token
done' 'ileReader.sh: line 8:
done < $FILE
Script used
echo "Start"
FILE="/abc/def/ghi/Sample.TXT"
echo "File Path -----"$FILE
while read line;do
echo "Line # : $line";
done < $FILE