# Menus and Choices: case and select

case matches one value against a list of patterns and runs the lines for the first match, which suits a script's options and yes-or-no answers, and select turns a list of words into a numbered menu.

![Cheat sheet for the lesson Menus and Choices: case and select: case matches one value against a list of patterns and runs the lines for the first match, which suits a script's options and yes-or-no answers, and select turns a list of words into a numbered menu.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/e6bff507a9bb437db50807fb04cf403a.webp)

- Category: Bash
- Level: Apprentice
- Tags: case-statement, glob, linux, select, shell-script, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-case-and-select-cheat-sheet
