Nested If Condition In Unix