Korn Shell Notes

Example 1

#!/bin/ksh

print "Enter a number: "
read NUM
print "NUM is $NUM"

Example 2

#!/bin/ksh

print "Enter a number: "
read NUM
if  (($NUM < 10)); then
   print "$NUM is less than 10."
else
   print "$NUM is greater than or equal to 10."
fi