From 8eecd89922b6d602c982ef2358d6ef6e5228f771 Mon Sep 17 00:00:00 2001 From: Ankam Ravi Kumar Date: Thu, 17 May 2018 23:01:58 +0530 Subject: [PATCH] Create or-operator.sh Logical Or Operator Example --- or-operator.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 or-operator.sh diff --git a/or-operator.sh b/or-operator.sh new file mode 100644 index 0000000..5a66bd7 --- /dev/null +++ b/or-operator.sh @@ -0,0 +1,19 @@ +#!/bin/bash +#Purpose: OR operator example +#Version:1.0 +#Created Date: Sat May 12 21:26:51 IST 2018 +#Modified Date: +#Author: Ankam Ravi Kumar +# START # +echo -e "Enter First Numberic Value: \c" +read -r t +echo -e "Enter Second Numeric Value: \c" +read -r b + +if [ $t -le 20 -o $b -ge 30 ]; then +echo "Statement is True" +else +echo "Flase, Statement Try Again." +fi + +# END #