This is a basic shell script to find whether given number is even or odd. Here we use a simple condition rem=$(( $n % 2 )) to check the number is even or not. If the remainder is 0 then the number is Even else it is odd.
This shell script is used to find greatest of three given numbers. The conditions are very simple. Just go through the program.