2. The select Loop We should use the select command to create a simple menu in the terminal. Then, the command displays a list of options preceded by numbers. Let’s learn the command syntax: select NAME [in WORDS … ;] do COMMANDS; done Copy select repeatedly reads a number from standard input.
https://www.baeldung.com/linux/shell-script-simple-select-menu

