#!/bin/sh # # Nico Schottelius # Date: 15-Sep-2004 # Last Modified: - # # Removes the first n lines if [ $# -ne 2 ]; then echo "$0: "' ' exit 1 fi CUT_LINES=$1 FILE=$2 LINES=`cat "$FILE" | wc -l` TAIL_LINES=`echo "${LINES}-${CUT_LINES}" | bc` echo $TAIL_LINES tail -n "$TAIL_LINES" "$FILE"