#!/bin/bash

function usage {
  echo -e "Usage:\t"`basename $0`" <numeric values 1-9>"
  echo -e "\tPlease enter numeric values 1-9."
  exit 1
}
if [ $# -ne 1 ]; then
  usage
fi

case $1 in
  1)
    echo "[INFO] enter numric value is 1";;
  [23])
    echo "[INFO] enter numric value is 2 or 3";;
  [4-9])
    echo "[INFO] enter numric value is [4-9]";;
  10)
    echo "[INFO] enter numric value is 10";;
  *)
    echo "[ERR] invalid value";;
esac
