-NAMES=""
-OLDIFS=$IFS
-IFS=$(printf "\n")
-for LINE in $RES
-do
- printf -- "$LINE\n"
- NAME=`printf "$LINE" | grep name`
- if [ "$?" == "0" ]
- then
- NAMES="$NAMES\n"`printf "$NAME" | cut -d: -f2 | sed -e 's/^ *//' -e 's/ *$//'`
- fi
-done
-IFS=$OLDIFS
-
-printf "Names:\n$NAMES\n"
-
-NUM=`printf "$NAMES" | wc -l`
-
-printf -- "--------\n$NUM\n\n"