> Use another loop: > > for $fruit in `cat fruits`; do > while [ -z $ANS ]; do > echo -n "Do you like $fruit" > read ANS > done > done
hey, thanks for the code above :) It works, I just needed to add a unset ANS above the while [ blah blah ] line thanks Sunny Dubey