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

@ -68,25 +68,16 @@ function tailfile() {
FILENAME=$1
FILEDESC=$2
for c in $1; do
for c in $1; do
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
}