Horje
get length of array bash Code Example
get length of array bash
## define it
distro=("redhat" "debian" "gentoo")
 
## get length of $distro array
len=${#distro[@]}
 
## Use bash for loop 
for (( i=0; i<$len; i++ )); do echo "${distro[$i]}" ; done
bash size of array
echo "${#my_array[@]}"




Shell

Related
enable snap in linux mint Code Example enable snap in linux mint Code Example
Github Identification on terminal Code Example Github Identification on terminal Code Example
Could not build wheels for pygalmesh which use PEP 517 and cannot be installed directly Code Example Could not build wheels for pygalmesh which use PEP 517 and cannot be installed directly Code Example
how to uninstall spacevim Code Example how to uninstall spacevim Code Example
git config user Code Example git config user Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
25