Folks;
Can any one tell me what these commands below do:
user=$(/usr/ucb/whoami)
DZERO=${0}
PROG=$(basename ${DZERO})
while [ -h ${DZERO} ]; do
DZERO=$(ls -l ${DZERO} | awk '{print $NF}') done PDIR=$(dirname ${DZERO}) if [ ${PDIR} = '.' ]; then
PDIR=${PWD}
elif [ $(expr ${PDIR} : "\(.\).*") != '/' ]; then
PDIR=${PWD}/${PDIR}
fi