tablica listy katalogów sklepów Bash
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