Created
July 30, 2013 13:27
-
-
Save tce/6112888 to your computer and use it in GitHub Desktop.
Lists in bash from http://stackoverflow.com/questions/78592/what-is-a-good-equivalent-to-perl-lists-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
fruits=(apple orange kiwi "dried mango") | |
for fruit in "${fruits[@]}"; do | |
echo "${fruit}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment