#!/bin/sh

# You would think you could count on whoami being present on all
# Unix systems, but apparently that isn't always the case.
# For systems that do not have a whoami command,
# this script should do the same thing.

RESULT=`which whoami`
if [ -f $RESULT ]
   then
   echo `whoami`
else
   USERID=`echo $HOME | sed -e  's%/.*/%%'`
   echo $USERID
fi
