if [[ "${2}" = +([0-9]) ]] then echo -e "Second parameter is ${2}." else echo -e "Non-numeric entered." fi