How do I prompt for Yes/No/Cancel input in a Linux shell script?
Asked 07 September, 2021
Viewed 1.2K times
  • 61
Votes

I want to pause input in a shell script, and prompt the user for choices.
The standard Yes, No, or Cancel type question.
How do I accomplish this in a typical bash prompt?

30 Answer