Strings Concat Inside Array Bash Script
List="A B C D"
for I in $List
do
OUT=${OUT:+$OUT }-$I
done
Scary Scarab
List="A B C D"
for I in $List
do
OUT=${OUT:+$OUT }-$I
done