This is a simple bash script or shell script to find greatest of two numbers.

read function used to get input from the user
-gt = Greater than

Note: if you get this message, this means you need to add an execute (x) permission to the bin/greatestOfTwo file.

bash: ./ Permission denied

Run the following command

$ chmod +x 

Now let's execute

$ ./ 
Enter First Number: 23
Enter Second Number: 34


Greatest is 34

I hope this may help you.