How can i split my long string constant over multiple lines?
I realize that you can do this:
echo "continuation \\ lines" >continuation li
However, if you have indented code, it doesn't work out so well: 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:
echo 'continuation' \ 'lines' >continuation lines
Note: the concatenation includes a whitespace.