array handling in bash, cheat-sheet


# array handling in bash, cheat-sheet
#
# foo=() # declare foo
# echo ${#foo[@]} # length of foo
# foo=(${foo[@]} "bar") # add elemnt to foo
# echo ${foo[1]} # access element

Advertisements