Created
September 22, 2017 20:20
-
-
Save albovieira/312c4838119c1c6d596ab34c3293a1bf to your computer and use it in GitHub Desktop.
for.sh
This file contains 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/sh | |
NUMS="1 2 3 4 5 6 7" | |
for NUM in $NUMS | |
do | |
Q=`expr $NUM % 2` | |
if [ $Q -eq 0 ] | |
then | |
echo "Number is an even number!!" | |
continue | |
fi | |
echo "Found odd number" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment