Skip to content

Instantly share code, notes, and snippets.

@mbiemann
Created March 12, 2022 16:31
Show Gist options
  • Save mbiemann/a62cbed14bff99585b6b02c1fca6a356 to your computer and use it in GitHub Desktop.
Save mbiemann/a62cbed14bff99585b6b02c1fca6a356 to your computer and use it in GitHub Desktop.
[SHELL] Using For interaction with Array Variable
WHATIHAVE=("a dog" "three cats" debts)
for i in ${WHATIHAVE[@]}
do
echo "I have ${i}."
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment