select
Verified for current stable LTS
Select Command: Create Menu From Command Output
Use for create menu from command output with Select. Exact CLI syntax to create menu from command output using Select.
When to use this: Use for create menu from command output with Select.
Command Syntax
select <line> in $(<command>); do echo $<line>; done select <line> in $(<command>); do echo $<line>; done Command Breakdown
select is the base executable for this command.
FAQ
Purpose: Exact syntax to create menu from command output using Select.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Select Command: Create Menu From Bash Array
<fruits>=(<apple orange pear banana>); select <word> in ${<fruits[@]>}; do echo $<word>; done Select Command: Create Menu From Words select <word> in <apple orange pear banana>; do echo $<word>; done Select Command: Specify Prompt And Pick File PS3="{Select a file: }"; select <file> in *; do echo $<file>; done