If..else..fi - Linux Shell Scripting Tutorial - A Beginner's handbook
Create a shell script called testnum.sh: #!/bin/bash read-p "Enter number : "n if test $n-ge 0 then echo " $n is positive number." else echo " $n number is negative number." fi Save and close the file. Run it as follows: chmod +x testnum.sh . / testnum.sh...