Skip to content

Instantly share code, notes, and snippets.

@albovieira
Created September 22, 2017 20:20
Show Gist options
  • Save albovieira/312c4838119c1c6d596ab34c3293a1bf to your computer and use it in GitHub Desktop.
Save albovieira/312c4838119c1c6d596ab34c3293a1bf to your computer and use it in GitHub Desktop.
for.sh
#!/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