CmdID

CmdID / Commands

declare

Declare variables and give them attributes. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Declare a string variable with the specified value

declare variable="value"Identify

Declare an integer variable with the specified value

declare -i variable="value"Identify

Declare an array variable with the specified value

declare -a variable=(item_a item_b item_c)Identify

Declare an associative array variable with the specified value

declare -A variable=([key_a]=item_a [key_b]=item_b [key_c]=item_c)Identify

Declare a readonly string variable with the specified value

declare -r variable="value"Identify

Declare a global variable within a function with the specified value

declare -g variable="value"Identify

Print a function definition

declare -f function_nameIdentify

Print a variable definition

declare -p variable_nameIdentify