Created
August 5, 2015 23:55
-
-
Save austinmarton/802a74f54bd629da405e to your computer and use it in GitHub Desktop.
Bash for loop example
This file contains hidden or 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
#!/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