Created
November 24, 2018 01:59
-
-
Save steshaw/53ba0095bce8ccab52d26a14375dedb8 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
set -euo pipefail | |
my_array=(one two three) | |
print_array() { | |
echo "${my_array[*]}" | |
} | |
IFS=$'\n' print_array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment