#!/bin/ksh


WORKDIR="/etc/opt/platform7/resources/protocol/"
OUTFILE="/tmp/wm/pcls.out"

if [ -f ${OUTFILE} ]; then rm ${OUTFILE}; fi

for f in `ls ${WORKDIR}/*ProtocolAttribute*/*`
do
   name=`grep -E "^2:" $f | sed -e 's/2\://g' | awk '{print $1}'`
   description=`grep -E "^6:" $f | sed -e 's/6\://g' | awk 'BEGIN {FS="#"}{print $1}'`

print "$name   --$description" >>  ${OUTFILE}

done
sort ${OUTFILE} | more

