#!/bin/sh
#
# silly example of functions
# requires two command-line arguments
#
if [ -z "$2" ]
then
    echo "usage is `basename $0` param1 param2"
    exit 1
fi
# print two parameters in parentheses
function print_pair() {
    echo "($1, $2)"
}
print_pair 1 $1
print_pair 2 $2
