#!/bin/bash

n=48
x=$n-6
echo $n
echo $x

(( x = $n - 6 ))
echo $x

echo -n "Single square brackets, no quotes: "
if [ $x -gt 5 ]
then
	echo "$x is greater than 5"
else
	echo "$x is not greater than 5"
fi
		
echo -n "Double square brackets, no quotes: "
if [[ $x > 5 ]]
then
	echo "$x is greater than 5"
else
	echo "$x is not greater than 5"
fi

echo -n "Double parentheses, no quotes: "
if (( $x > 5 ))
then
	echo "$x is greater than 5"
else
	echo "$x is not greater than 5"
fi

echo "Enter the word hot, cold, or warm"
read theWord
case "$theWord" in
   "hot")
       echo "Burning hot."
       ;;
   "warm")
       echo "Tepid."
       ;;
   "cold")
       echo "Freezing."
       ;;
    *)
       echo "You didn't follow directions."
       ;;
esac
echo "The end"                  

