if [[ ! ${execshell} =~ ^[0-9]+ ]];中的“=~ ” 是什么意思?
while true
do
read -p "Please input one numbers in[ ${numbers} ]:"execshell
if [[ ! ${execshell} =~ ^[0-9]+ ]];then
exit 0
fi
/bin/sh ./${ssharray[$execshell]}
done
while true
do
read -p "Please input one numbers in[ ${numbers} ]:"execshell
if [[ ! ${execshell} =~ ^[0-9]+ ]];then
exit 0
fi
/bin/sh ./${ssharray[$execshell]}
done
2017-10-04
举报