#! /bin/bash read -p "please input a number:" a case "$a" in 1) echo "The num is 1" ;; 2) echo "The num is 2" ;; [3-9]) echo "The num is $a" ;; *) echo "please input[0-9] int" exit ;; esac