#!/bin/rc

#! listsvc  lists all available services, eliminating duplicates

echo listing all currently indexed services
cat /tmp/grid/info/regbucket |sed 's/ /_/g' >/tmp/grid/work/svclista
while (SVC=`{read /tmp/grid/work/svclista}) {
	LISTING=`{echo $SVC |sed 's/_/ /g'}
	echo $LISTING
	cat /tmp/grid/work/svclista |sed s/$SVC// >/tmp/grid/work/svclistb
	cat /tmp/grid/work/svclistb |sed '/^$/d' >/tmp/grid/work/svclista
}

# there has GOT to be a better way to do this
