Created
November 16, 2021 01:23
-
-
Save miy4/a017b5aa49008bae77e16f216d624955 to your computer and use it in GitHub Desktop.
Joining elements of an array in 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 | |
fruits=('apple' 'orange' 'banana') | |
printf '%s\n' "${fruits[*]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment