Skip to content

Instantly share code, notes, and snippets.

View domanchi's full-sized avatar

Aaron Loo domanchi

View GitHub Profile
@domanchi
domanchi / multiline_string.sh
Last active August 25, 2018 14:08
[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"
}