-
Notifications
You must be signed in to change notification settings - Fork 0
select
zeta709 edited this page Jan 31, 2022
·
2 revisions
cat <<- EOF
Choose your option:
a) AAA b) BBB c) CCC d) DDD
EOF
while printf '#? ' && read -r ans; do
case $ans in
a) break;;
b) break;;
c) break;;
d) break;;
*) ;;
esac
doneprintf 'Some question (y/[n])?\n' && read -r ans
case $ans in
y|Y) ;;
*) ;;
esac