#! /bin/bash if [ $# -ne 1 ];then echo "please input one argument:"exit 1 fi
if [ $1 -eq 1 ];then echo "you input is $1."elif [ $1 -eq 2 ];thenecho "you input is $1."elseecho "you input is wrong."exit 2 fi