Skip to content

Instantly share code, notes, and snippets.

@domanchi
Last active August 25, 2018 14:08
Show Gist options
  • Save domanchi/614bcf64d1e8c8b36a4866ab556ec447 to your computer and use it in GitHub Desktop.
Save domanchi/614bcf64d1e8c8b36a4866ab556ec447 to your computer and use it in GitHub Desktop.
[multiline string] Example of how to write a multiline string, for nicer formatting. #bash
#!/bin/bash
function main() {
local var=`echo 'this' 'is' \
'a multiline' 'string'`
# Expected Output: "this is a multiline string"
echo "$var"
}
main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment