#! /bin/csh
# pwr - C Shell script to display current OASIS can conditions
#
set oasis = /oasis
set file = `date +%y%j`
set lines = 8
if ($#argv > 0) set lines = $1

echo "Date/time  Can temp  Batt  Current Can Press"

cd $oasis/m1/oasis
if ( -e $file ) then
	echo "M1"
	tail -"$lines"l $file
endif

cd $oasis/m2/oasis
if ( -e $file ) then
	echo "M2                                         ARGOS Batt"
	tail -"$lines"l $file | awk -f /oasis/bin/oasis.awk
endif
