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