Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash script print array elements index and value

for i in "${!foo[@]}"; do 
  printf "%s	%s
" "$i" "${foo[$i]}"
done
 
PREVIOUS NEXT
Tagged: #bash #script #print #array #elements #index
ADD COMMENT
Topic
Name
8+8 =