Skip to content

Instantly share code, notes, and snippets.

@junjizhi junjizhi/for_loop.sh
Created Dec 20, 2013

Embed
What would you like to do?
For loop in shell
NUM=$1
#equel to for (int i=1; i<num; i++) in c/c++, java
for i in $(seq 1 $NUM);
do
echo $i
done
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.