Skip to content

Instantly share code, notes, and snippets.

@MInner
Last active August 5, 2021 14:50
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 MInner/cc1704f5a22271073d694b45f60ba25d to your computer and use it in GitHub Desktop.
Save MInner/cc1704f5a22271073d694b45f60ba25d to your computer and use it in GitHub Desktop.
loop over two zipped arrays in bash
a=(x y z); b=(q w e); for i in ${!a[@]}; do echo ${a[i]}-${b[i]}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment