Skip to content

Instantly share code, notes, and snippets.

@mschoch
Last active December 12, 2015 12:49
Show Gist options
  • Save mschoch/4774593 to your computer and use it in GitHub Desktop.
Save mschoch/4774593 to your computer and use it in GitHub Desktop.
Snippet: BASH: for loop
#!/bin/bash
for (( i=1; i <= 5; i++ ))
do
echo "Random number $i: $RANDOM"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment