shell script while multiple conditions