Created
July 10, 2014 10:21
-
-
Save basharam/940cefeb95a4382d2e3d to your computer and use it in GitHub Desktop.
test command example
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 | |
echo -n Enter you Age: | |
read aAge | |
if test -z "$aAge" | |
then | |
echo Enter Age in Numeric value. | |
exit | |
fi | |
if test $aAge -ge 67 | |
then | |
echo you had been retired. | |
elif test $aAge -lt 67 -a $aAge -ge 40 | |
then | |
echo you would retire soon. | |
elif test $aAge -lt 40 -a $aAge -ge 35 | |
then | |
echo Enjoy the bliss of youngster. | |
else | |
echo sorry no match found :'(' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment