Ask For Input Until Y Or N Pressed
The aim of this page📝is to show a pattern usable for getting a simple single-character input from a user. Taken from
…which I can only recommend as it is guiding me through first scripting task at my work.
- note that without
-syou would get a line of output such as
Are you sure (Y/N)? abdsdvcy