- 用户确认继续
read -p "Continue? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 0
read -p "Continue? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 0
本文标题:bash的交互
本文链接:https://www.haomeiwen.com/subject/ymsicjtx.html
网友评论