function_name()
{
command
command
}
check_assigned()
{
NAME="$1"
grep "$NAME" $DIR/assigned
if [ $? -eq 0 ]
then
echo ""
echo "*** $NAME has already been assigned."
echo " Contact us if you have forgotten what the value is."
return 0
fi
return 1
}
# Here are 2 calls to the function
check_assigned "Cathy Bishop"
check_assigned "Denis Niwemugisha"