#! /bin/sh # # @(#)setlength.sh 4.1 (Berkeley) 9/12/82 # # set the length of the logfiles set a=$1 set tmp=setl$$ shift unset noclobber foreach i ($argv) tail -$a $i >/tmp/$tmp cp /tmp/$tmp $i chmod 666 $i end rm -f /tmp/$tmp