Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.eso.org/~qc/monitor/REPROC/clean_overview
Дата изменения: Fri May 24 14:10:03 2013
Дата индексирования: Fri Feb 28 12:03:07 2014
Кодировка:
#!/bin/sh
# this is a helper tool to bring the old histoMonitor pages (created on dfo03 and dfo13)
# to the content of this UVESR_1 tree.
# created 2013-05-23 by R. Hanuschik
# $1: month, e.g. 2007-03
# all dates:
# for M in `ls -d 200*/*`; do M1=`echo $M | sed "s|/| |" | awk '{print $2}'`; ./clean_overview -m $M1; done
# no data reports exist before 2003!

if [ $1 = -m ] && [ Q$2 != Q ]
then
MONTH=$2
YEAR=`echo $MONTH | cut -c1-4`
cd $YEAR/$MONTH
DAY=1
while [ $DAY -lt 32 ]
do
if [ $DAY -lt 10 ]
then
DAY1="0$DAY"
else
DAY1=$DAY
fi

sed -i -e "/${MONTH}-${DAY1}report|" $MONTH.html

DAY=`echo $DAY | awk '{print $1+1}'`
done
fi

exit