Skip to content

Instantly share code, notes, and snippets.

@basharam
Created July 10, 2014 10:21
Show Gist options
  • Save basharam/940cefeb95a4382d2e3d to your computer and use it in GitHub Desktop.
Save basharam/940cefeb95a4382d2e3d to your computer and use it in GitHub Desktop.
test command example
#/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