Last active
August 5, 2021 14:50
-
-
Save MInner/cc1704f5a22271073d694b45f60ba25d to your computer and use it in GitHub Desktop.
loop over two zipped arrays in bash
This file contains hidden or 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
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