Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash for loop example
#!/bin/bash
for i in {0..20..2} ; do echo "i=$i"; done
# ^ ^ ^
# | | |
# start --' | |
# end -------' |
# increment -----'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.