fix problem with dup references and -e -s options.
[unix-history] / usr / src / old / berknet / setlength.sh
CommitLineData
8e495542
KM
1#! /bin/sh
2#
3# @(#)setlength.sh 4.1 (Berkeley) %G%
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