#!/bin/csh
# Displays population of the particular server you're logged onto,
# separated into Local and Remote headings...
# Updated to ignore 'dtremote's...

alias 'z' 'who | grep -v "dtremote"'

set local = ( `z | grep -v '(' | awk '{print $1}' | sort | uniq` )
set remote =   ( `z | grep '(' | awk '{print $1}' | sort | uniq` )
@ local = $#local
@ remote = $#remote
@ total = ( $local + $remote )
echo "Local: $local, Remote: $remote, Total: $total"
