#! /bin/csh
#
# Script: cpus
# Purpose: To return the number of CPUs
# Returns: STDOUT: <CPU Type> <# cpus>
#

# Check for type of CPU (IP4/IP4.5/IP5/IP7/IP9/IP15/IP19) and how many

set tmpcpu = `hinv | grep "IP*[0-9]" | awk '{print $4}'`
if ($#tmpcpu > 1) then
	set tmpcpu $tmpcpu[1]
endif

echo $tmpcpu
