Better name for examples dir
[lcapit-junk-code.git] / snippets / bash / select.sh
blobbc32326900b7c6fe62f4a8576e853589813d1f1d
1 #!/bin/bash
3 # Example of bash select usage.
5 # Luiz Fernando N. Capitulino
6 # <lcapitulino@gmail.com>
8 select name in again exitnow; do
9 if [ "$name" = "exitnow" ]; then
10 exit 0
12 echo $name
13 done