declare -a array=( Java Ruby Python ) echo ${array[0]} # => Java echo ${#array[*]} #=> 3(é åã®è¦ç´ æ°) for e in ${array[*]} do echo $e # => Java, Ruby, Pythonã®é ã«åºå done for i in ${!array{*}} do echo ${array[i]} # => Java, Ruby, Pythonã®é ä½åºå done declare -A hash=([Jack]=11 [Queen]=12 [King]=13) echo ${hash['King']} # => 13 for v in ${hash[*]} do echo $v # => Jack, Queen, King(é åºã¯ä»»æ) done for k in ${!hash[
{{#tags}}- {{label}}
{{/tags}}