#!/bin/sh -u # demonstrate the TEST command in an IF statement (numeric test) # Reference: Chapter 11 # -IAN! idallen@ncf.ca # shell variable $# contains the number of args to this script (p.334) # count=$# # for a list of numeric comparison operators, see man page or middle p.382 # if test $count -gt 5 ; then echo "argument count $count is greater than 5" else echo "argument count $count is not greater than 5" fi