Setting the correct exit conditions will break the loop
code:
do
; stuff
until $line=''

_________________________
There are two types of vessels, submarines and targets.