Skip to content

Instantly share code, notes, and snippets.

@jzbruno
Created November 2, 2016 19:20
Show Gist options
  • Save jzbruno/e63d0fba4ad654a8093db37ad4689016 to your computer and use it in GitHub Desktop.
Save jzbruno/e63d0fba4ad654a8093db37ad4689016 to your computer and use it in GitHub Desktop.
Bash iterate array
#!/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