Skip to content

Instantly share code, notes, and snippets.

@austinmarton
Created August 5, 2015 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save austinmarton/802a74f54bd629da405e to your computer and use it in GitHub Desktop.
Save austinmarton/802a74f54bd629da405e to your computer and use it in GitHub Desktop.
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