Bash - Select

Bash Liste Des Attaques Ovh


The select syntax in bash


select name [ in word ] ; do list ; done

The list of words following in is expanded, generating a list of items. The set of expanded words is printed on the standard error, each preceded by a number. If the in word is omitted, the positional parameters are printed (see PARAMETERS below). The PS3 prompt is then displayed and a line read from the stan- dard input. If the line consists of a number corresponding to one of the displayed words, then the value of name is set to that word. If the line is empty, the words and prompt are dis- played again. If EOF is read, the command completes. Any other value read causes name to be set to null. The line read is saved in the variable REPLY. The list is executed after each selection until a break command is executed. The exit status of select is the exit status of the last command executed in list, or zero if no commands were executed.

Discover More
Bash Liste Des Attaques Ovh
Bash - (Builtin|Intern|System|Reserved|Shell) variable name

Reserved variable name are named that have a special meaning for the bash shell. PS1 defines the shell's command-line prompt. HOME defines the home directory for a user. PATH defines a list...
Bash Liste Des Attaques Ovh
Bash - Break

A flow command that exit from within: a for, while, until, or select loop. where: n is the break level. n must be ≥ 1. If n is greater than the number of enclosing loops, all...
Bash Liste Des Attaques Ovh
Bash - Continue

A control flow statement where: n resume at the nth enclosing loop. n must be ≥ 1. If n isgreater than the number of enclosing loops, the last enclosing loop (the ‘‘top-level’’...
Bash Liste Des Attaques Ovh
Bash - Loop

The loop structures in Bash are: for while select until You can use the break and continue statement to control the loop behavior. When calling a loop, quote the variable otherwise bash...

Share this page:
Follow us:
Task Runner