Bash Store Directory List Array
let i=1
for dir in "${dirs[@]}"; do
echo "$((i++)) $dir"
done
Borma
let i=1
for dir in "${dirs[@]}"; do
echo "$((i++)) $dir"
done