mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2026-01-14 03:01:42 +00:00
Create or-operator.sh
Logical Or Operator Example
This commit is contained in:
19
or-operator.sh
Normal file
19
or-operator.sh
Normal file
@ -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 #
|
||||
Reference in New Issue
Block a user