Skip to content

Instantly share code, notes, and snippets.

@eminorhan
Last active January 23, 2023 22:45
Show Gist options
  • Save eminorhan/c06ac9475e56a81c0238f17f5a478d3e to your computer and use it in GitHub Desktop.
Save eminorhan/c06ac9475e56a81c0238f17f5a478d3e to your computer and use it in GitHub Desktop.
bash for loop example
for i in 1 3 4 9 11 cat 89 dog 102; do
# commands to be executed go here
echo $i
done
# this will print all the items in the for loop, numbers as well as strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment