#!/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
print_pair() {
    echo "($1, $2)"
}

# main body of script
print_pair 1 $1
print_pair 2 $2
