Skip to content

Instantly share code, notes, and snippets.

@jeremyj
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyj/64f777e3efd8d898e20d to your computer and use it in GitHub Desktop.
Save jeremyj/64f777e3efd8d898e20d to your computer and use it in GitHub Desktop.
Bash increment variable count
#!/bin/bash
i=0
while [ $i -le 10 ]; do
i=$(($i+1))
echo $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment