concat string array bash code example Example: concat strings inside array bash script List="A B C D" for I in $List do OUT=${OUT:+$OUT }-$I done