> For the complete documentation index, see [llms.txt](https://notes.eliasnorrby.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.eliasnorrby.com/bash/case-statement.md).

# Case statement

```bash
case $var in
  one) echo "hello" ;;
  two) echo "world" ;;
esac
```
