Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

array item bash

#!/bin/bash
AR=([3]='foo' [5]='bar' [25]='baz' [7]='bat')
for i in "${!AR[@]}"; do
  printf '${AR[%s]}=%s
' "$i" "${AR[i]}"
done
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #array #item #bash
ADD COMMENT
Topic
Name
9+7 =