shell scripting-examples of conditional logic