Skip to content

Instantly share code, notes, and snippets.

@carlosmcevilly
Last active June 17, 2020 04:20
Show Gist options
  • Save carlosmcevilly/4960a8991dc51d71b6a3a0822376e023 to your computer and use it in GitHub Desktop.
Save carlosmcevilly/4960a8991dc51d71b6a3a0822376e023 to your computer and use it in GitHub Desktop.
bash simple list
#!/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