Category: shell bash

Shell array, dictionary, source, split simple example 0

Shell array, dictionary, source, split simple example

Hits: 0 Dictionary, [array] example echo "shell definition dictionary" #must declare declare -A dic dic=([key1]="value1" [key2]="value2" [key3]="value3") #Print the value of the specified key echo ${dic["key1"]} #Print all key values ​​echo ${!dic[*]} #Print all...