Create relationaloper.sh

This commit is contained in:
Ankam Ravi Kumar
2018-05-17 23:11:01 +05:30
committed by GitHub
parent 525a1f9d2f
commit 72364664ab

20
relationaloper.sh Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
#Purpose: Relational Operators examples
#Version:1.0
#Created Date: Thu May 10 22:43:16 IST 2018
#Modified Date:
# Website: https://arkit.co.in
#Author: Ankam Ravi Kumar
# START #
echo -e "Please provide one number: \c"
read -r h
echo -e "Please provide one number: \c"
read -r g
test $h -lt $g;echo "$?";
test $h -le $g;echo "$?";
test $h -gt $g;echo "$?";
test $h -ge $g;echo "$?";
test $h -eq $g;echo "$?";
test $h -ne $g;echo "$?";
# END #