Last active
January 23, 2023 22:45
-
-
Save eminorhan/c06ac9475e56a81c0238f17f5a478d3e to your computer and use it in GitHub Desktop.
bash for loop example
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
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