#!/bin/sh -f
####
####  Trim the liners file down to 10 lines.
####

LINERS="/gftp/msgs/liners"
TMP=/tmp/$0.1$$
TMP2=/tmp/$0.2$$
LINES=`wc -l ${LINERS}|awk '{print $1}'`


if [ "${LINES}" -lt "13" ]; then
	exit
fi

head -2 ${LINERS} >$TMP
tail -10 ${LINERS} >$TMP2

cp /dev/null ${LINERS}

cat $TMP $TMP2 >> ${LINERS}

rm -rf $TMP $TMP2
