#!/bin/bash # # Illustrates nested if logic # and the use of arithmetic operators # visit http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html # read -p "Enter a number: " num if [ $num -gt 10 ] # arithmetic operator greater than then echo "Number is higher than ten" elif [ $num -eq 5 ] then echo "number is five" else echo "Number is not five" fi