1#! /bin/sh 2# 3# @(#)setlength.sh 4.1 (Berkeley) 09/12/82 4# 5# set the length of the logfiles 6set a=$1 7set tmp=setl$$ 8shift 9unset noclobber 10foreach i ($argv) 11 tail -$a $i >/tmp/$tmp 12 cp /tmp/$tmp $i 13 chmod 666 $i 14end 15rm -f /tmp/$tmp 16