#!/bin/bash
clear
function verify
{
if [$# -ne 2]
then
return 1
else
if [$1 -eq "Bob"]&&[$2 -eq "555"]
then
return 0
else
return 2
echo "Rejected"
fi
fi
}
verify Bob 555
case $? in
do
0)
echo "Verified"
;;
1)
echo "Wrong number of arguments!"
;;
2)
echo "Rejected"
;;
done