Bash * and @ Relative to Array Elements: Difference between revisions
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
* [[Bash_Concepts#$*|<tt>$*</tt>]] | * [[Bash_Concepts#$*|<tt>$*</tt>]] | ||
* [[Bash_Arrays#Reference_All_Indexed_Array_Elements|Get All Indexed Array Elements]] | * [[Bash_Arrays#Reference_All_Indexed_Array_Elements|Get All Indexed Array Elements]] | ||
* [[Bash_Arrays#Get_All_Associative_Array_Keys|Get All Associative Array | * [[Bash_Arrays#Get_All_Associative_Array_Keys|Get All Associative Array Keys]] | ||
* [[Bash_Arrays#Get_All_Associative_Array_Values|Get All Associative Array | * [[Bash_Arrays#Get_All_Associative_Array_Values|Get All Associative Array Values]] | ||
=Overview= | =Overview= | ||
<code>*</code> and <code>@</code> are bash syntax elements that tokenize arrays. They are used to process command line argument (<code>$*</code>, <code>$@</code> and <code>"$@"</code>), [[Bash_Arrays#Reference_All_Indexed_Array_Elements|values for indexed arrays]], keys and values for associative arrays, etc. | <code>*</code> and <code>@</code> are bash syntax elements that tokenize arrays. They are used to process command line argument (<code>$*</code>, <code>$@</code> and <code>"$@"</code>), [[Bash_Arrays#Reference_All_Indexed_Array_Elements|values for indexed arrays]], keys and values for associative arrays, etc. |
Revision as of 18:40, 1 April 2024
Internal
- $@
- $*
- Get All Indexed Array Elements
- Get All Associative Array Keys
- Get All Associative Array Values
Overview
*
and @
are bash syntax elements that tokenize arrays. They are used to process command line argument ($*
, $@
and "$@"
), values for indexed arrays, keys and values for associative arrays, etc.