#! /bin/sh

case "$1" in

'managed')
	find $BCNUHOME/data/hosts/ -name "av*" -print | \
	xargs awk -F: '$3 == $4 { print $3}'
	;;
'proxy')
	find $BCNUHOME/data/hosts/ -name "av*" -print | \
	xargs awk -F: '$3 != $4 { printf("%s\t%s\n",$3,$4)}'
	;;
'all')
	find $BCNUHOME/data/hosts/ -name "av*" -print | \
	xargs awk -F: '{ print $3}'
	;;
*)	echo "Usage is $0 managed|proxy|all"
	;;
esac
