Created
November 2, 2016 19:20
-
-
Save jzbruno/e63d0fba4ad654a8093db37ad4689016 to your computer and use it in GitHub Desktop.
Bash iterate array
This file contains hidden or 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 -e | |
array=( | |
one | |
two | |
three | |
) | |
for item in "${array[@]}"; do | |
echo $item | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment