select
Verified for current stable LTS
Select Commands
Select command syntax with verified terminal examples.
Commands
4 commands for Select
select Operations
Select Command: Create Menu From Bash Array
<fruits>=(<apple orange pear banana>); select <word> in ${<fruits[@]>}; do echo $<word>; done select Operations
Select Command: Create Menu From Command Output
select <line> in $(<command>); do echo $<line>; done select Operations
Select Command: Create Menu From Words
select <word> in <apple orange pear banana>; do echo $<word>; done select Operations
Select Command: Specify Prompt And Pick File
PS3="{Select a file: }"; select <file> in *; do echo $<file>; done Suggest a Select Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Select workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.