openmamba-makereport: first lines of log files are not very useful; instead only print last lines and grow tail size to 200 lines

This commit is contained in:
Silvan Calarco 2011-10-17 00:08:53 +02:00
parent e256ee0e41
commit adc614b54a

View File

@ -73,20 +73,11 @@ function tailfile() {
cat >> $TEMPFILE << _EOF
****************************************************************
* File '$c' (first lines): $FILEDESC
* File '$c' (last 200 lines): $FILEDESC
****************************************************************
_EOF
head -n 100 ${ROOT}/$c >> $TEMPFILE
cat >> $TEMPFILE << _EOF
****************************************************************
* File '$c' (last lines): $FILEDESC
****************************************************************
_EOF
tail -n 100 ${ROOT}/$c >> $TEMPFILE
tail -n 200 ${ROOT}/$c >> $TEMPFILE
done
}