Bash Parameter and Variable Expansion: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * bash Parameters and Variables")
 
Line 2: Line 2:


* [[Bash_Parameters_and_Variables#Parameter_and_Variable_Expansion_-_Accessing_a_Parameter.27s_or_Variable.27s_Value|bash Parameters and Variables]]
* [[Bash_Parameters_and_Variables#Parameter_and_Variable_Expansion_-_Accessing_a_Parameter.27s_or_Variable.27s_Value|bash Parameters and Variables]]
=Overview=
A dollar sign ($) that is NOT followed by an open parenthesis initiates parameter or variable expansion. The simplest case of parameter expansion is retrieving the parameter value: the associated value is retrieved by prefixing the parameter's number, character or name with $ or enclosing it in ${...}.

Revision as of 21:10, 18 September 2019

Internal

Overview

A dollar sign ($) that is NOT followed by an open parenthesis initiates parameter or variable expansion. The simplest case of parameter expansion is retrieving the parameter value: the associated value is retrieved by prefixing the parameter's number, character or name with $ or enclosing it in ${...}.