I need to read a file line by line until end of file, or a blank line is encountered. I have the following code in a shell script which does not work:
while read line
done < file.prop || $line == ""
Yes, this could be done easily with the
while read line do if [ "$line" == "" ]; then break else # commands fi done < file.prop