#! /bin/csh
#	Copyright 1990 Sony Corp.
#	Copyright 1990 Performance Systems International Inc.
#       copyright 1988 NYSERNet, Inc.
#	All Rights Reserved.
#
source ../../config/report-env
if (-e $ROOT/config/daily-env) then
  source $ROOT/config/daily-env
else
  echo "$0 : daily-env missing. Can't continue. Exit."
  exit(1)
endif

@ RECORDAGE = $RECORDAGE + 1
set datestmp=dates.tmp
/bin/rm -f $datestmp
/bin/ls $DATA |\
  awk '/^[0-1][0-9][0-3][0-9][8-9][0-9]$/ {print}' |\
  dateformat yymmdd | sort -r > $datestmp
tail +$RECORDAGE $datestmp | dateformat mmddyy | $BIN/multirmdir
/bin/rm -f $datestmp
