Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash store directory list array

let i=1

for dir in "${dirs[@]}"; do
    echo "$((i++)) $dir"
done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #store #directory #list #array
ADD COMMENT
Topic
Name
5+6 =