How do you use bash continuation lines?
I realize that you can do this:
echo "continuation \
lines"
>continuation lines
However, if you have indented code, it doesn't work out so well:
echo "continuation \
lines"
>continuation lines
Try with single quotes and concatenating the strings:
Note: the concatenation includes a whitespace.
You can use bash arrays
then
there is an extra space, because (after bash manual):
So set
IFS=''
to get rid of extra spaceDepending on what sort of risks you will accept and how well you know and trust the data, you can use simplistic variable interpolation.