mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-07-25 01:28:51 +00:00
21 lines
457 B
Bash
21 lines
457 B
Bash
#!/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 #
|