Skip to content

Instantly share code, notes, and snippets.

@zvineyard
Created March 21, 2012 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zvineyard/2148486 to your computer and use it in GitHub Desktop.
Save zvineyard/2148486 to your computer and use it in GitHub Desktop.
Bash: Array Iteration
#!/bin/bash
array=(
'first'
'second'
'third'
)
for i in "${array[@]}"
do
echo $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment