I want to pause input in a shell script, and prompt the user for choices. The standard Yes, No, or Cancel type question. How d
Yes
No
Cancel
read -e -p "Enter your choice: " choice
The -e option enables the user to edit the input using arrow keys.
-e
If you want to use a suggestion as input:
read -e -i "yes" -p "Enter your choice: " choice
-i option prints a suggestive input.
-i