mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-07-25 01:28:51 +00:00
Create relationaloper.sh
This commit is contained in:
20
relationaloper.sh
Normal file
20
relationaloper.sh
Normal 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 #
|
Reference in New Issue
Block a user