DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+8 =
Submit