read -d '' -aa for i in {0..15} { for b in ${a[*]} { echo -n ${b:$i:1} } }