How to create a selection menu using the select statement in Bash shell - LinuxConfig.org

We all very often use bash scripts to automatize boring and repetitive tasks. Sometimes in our scripts we need to ask the user to perform one or more choices interactively: in this tutorial we will see how to use the Bash shell select statement to perform such operation in very few lines of code.

In this tutorial you will learn:
  • How to use the Bash select statement
  • How to customize the select menu prompt

This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-create-a-selection-menu-using-the-select-statement-in-bash-shell