While Loop In Shell Script With Multiple Conditions In Where Clause