經安全檢測,此網站為安全網站,請放心前往原始網址!

UNIX - SHELL LOOP CONTROL - Tutorials for EasyMock, Object Oriented Analysis & Design, Tik

#!/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 This will produce following result: Found odd number Number is an even number!! Found ...

www.tutorialspoint.com

網址安全性掃描由 google 提供