Last active
June 17, 2020 04:20
-
-
Save carlosmcevilly/4960a8991dc51d71b6a3a0822376e023 to your computer and use it in GitHub Desktop.
bash simple list
This file contains 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
#!/bin/bash | |
export todo=() | |
for item in a b c; do | |
todo+=($item) | |
done | |
for item in "${todo[@]}"; do | |
echo got item [$item] | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment