1 min read

On Bash Select

You know what’s cool? This:

$ PS3="Night time is the right time #? "
$
$ select item in *.sh; do echo You picked $item \($REPLY\); break; done
1) case.sh
2) create_cert.sh
3) hugo.sh
Night time is the right time #? 2
You picked create_cert.sh (2)

I had no idea that Bash could do this.

Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee