shell script while loop with multiple conditions