From 72364664abb2132b3b7a9483674266c086e393a2 Mon Sep 17 00:00:00 2001 From: Ankam Ravi Kumar Date: Thu, 17 May 2018 23:11:01 +0530 Subject: [PATCH] Create relationaloper.sh --- relationaloper.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 relationaloper.sh diff --git a/relationaloper.sh b/relationaloper.sh new file mode 100644 index 0000000..5b35a7a --- /dev/null +++ b/relationaloper.sh @@ -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 #