Skip to content

Commit 8eecd89

Browse files
author
Ankam Ravi Kumar
authored
Create or-operator.sh
Logical Or Operator Example
1 parent 5093a4b commit 8eecd89

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

or-operator.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
#Purpose: OR operator example
3+
#Version:1.0
4+
#Created Date: Sat May 12 21:26:51 IST 2018
5+
#Modified Date:
6+
#Author: Ankam Ravi Kumar
7+
# START #
8+
echo -e "Enter First Numberic Value: \c"
9+
read -r t
10+
echo -e "Enter Second Numeric Value: \c"
11+
read -r b
12+
13+
if [ $t -le 20 -o $b -ge 30 ]; then
14+
echo "Statement is True"
15+
else
16+
echo "Flase, Statement Try Again."
17+
fi
18+
19+
# END #

0 commit comments

Comments
 (0)