How do I change a bash array into a string with this pattern? Let's say I have arr=(a b c d) and I want to change to this pattern
'a' + 'b' + 'c' + 'd' with the white space in between.
PS-I figured out this pattern 'a'+'b'+'c'+'d' but not sure how to put " + " instead of just "+" in between.