bash_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
bash_functions [2014/09/29 01:25] – [Integer or Decimal] k2patel | bash_functions [2014/09/29 01:53] – [floating point multiplication] k2patel | ||
---|---|---|---|
Line 324: | Line 324: | ||
[[http:// | [[http:// | ||
+ | |||
+ | ==== show array ==== | ||
+ | <code bash> | ||
+ | ashow() #@ Display contents of array[s] | ||
+ | { #@ USAGE: ashow ARRAYNAME ... | ||
+ | local _arg _num=0 | ||
+ | for arg | ||
+ | do | ||
+ | :; ((_num++)) && echo | ||
+ | :; declare -n array=$arg | ||
+ | :; [[ -n ${array[*]} ]] && printf ' | ||
+ | done | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | [[https:// |
bash_functions.txt · Last modified: 2020/08/10 02:35 by 127.0.0.1