Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

print array function bash

        printarr() { declare -n __p="$1"; for k in "${!__p[@]}"; do printf "%s=%s
" "$k" "${__p[$k]}" ; done ;  }
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #print #array #function #bash
ADD COMMENT
Topic
Name
5+8 =