Skip to content

Instantly share code, notes, and snippets.

@bcicen
Created December 13, 2013 16:33
Show Gist options
  • Save bcicen/7946989 to your computer and use it in GitHub Desktop.
Save bcicen/7946989 to your computer and use it in GitHub Desktop.
array1=(a b c d)
array2=(e f g h)
array3=(0 1 2 3)
for arrayitem in ""${array3[*]}""
do
echo -n ${array1[$arrayitem]}
echo ${array2[$arrayitem]}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment