USRS=/usr/acd/lib/mail.file
#
case $# in
0) echo Usage: [7mwhois search-string[0m;
echo;
echo The search-string can be a name, partial name, userid or partial userid.;
echo When entering a partial, the following special characters may be used:
echo
echo " .       any character at that location"
echo " .*      any number of characters at that location"
echo " [0-9]   any of the characters between braces at that location"
echo 
echo As an example, to list all cadet class of 90 users in company A1, enter:
echo x0....a1
echo 
echo If search string contains spaces, enclose string in double quotes.
exit 1;
esac
echo ;
echo "USERID         HOME      DEPT      REAL NAME";
#     zj8549         buckshot  acd       Junod John SFC
echo "------------------------------------------------------------";
grep -i "$*" $USRS | more
