Confirm The Input
In many case, when developing a menu system using shell script, it will be good to prompt the user to confirm that it is okay to run a script.
for example:
Only reply with Yes will continue the action, else the script will exit or return to the menu.
This is useful when executing script that will perform critical tasks, such as rebooting server, stop/start application, purging files, and so on.
How to do that?
Popularity: 31% [?]



