Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

array item bash

ARRAY=( "engineer " "CEO" "doctor" "teacher" )

for i in "${!ARRAY[@]}"
do
      echo " index---------------content"
      echo " $i                  ${ARRAY[$i]}"
done
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #array #item #bash
ADD COMMENT
Topic
Name
8+1 =