#!/bin/sh
# $Id: cfinger,v 1.2 1995/05/16 01:31:06 jhawk Exp $
#									#
#	cfinger								#
#									#
#	This shell script attempts to duplicate the features of		#
#	the old 'finger' program in the new Athena workstation		#
#	environment.							#


case $# in
0) finger
   echo ""
   exit
;; esac


for arg in $@ ; do
case arg in
@*)  finger $arg ;;
*)   if [ ! -d /mit/$arg ] ; then
       attach $arg >/dev/null 2>&1
       attached=1
     fi
     finger $arg | egrep -v '\?\?\?|Local|Athena-wide'
     echo "" ;;
esac
done
