Last active
August 25, 2018 14:08
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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