#!/bin/csh -f

if( $#argv == 0 ) then
    usage:
    echo "Usage: $0  {LMHA} [host host...]"
    exit 1
endif
switch ($1)
case "L":
    set  dir = "Low"
    breaksw
case "M":
    set dir = "Mid"
    breaksw
case "H":
    set dir  = "High"
    breaksw
case "A":
    set dir = "All"
    breaksw
default :
    goto usage
    breaksw
endsw

source config



if( $#argv == 1 ) then
    set list = ` cat hostlist `
else
    shift
    set list = `echo $argv[*] `
endif
foreach f($list)
   echo $f "----------------------------"
   zcat $datadir/$dir/${f}_obsv.gz | tail -5
end

