projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
date and time created 87/01/28 15:36:08 by mckusick
[unix-history]
/
usr
/
src
/
old
/
berknet
/
setlength.sh
Commit
Line
Data
8e495542
KM
1
#! /bin/sh
2
#
3
# @(#)setlength.sh 4.1 (Berkeley) %G%
4
#
5
# set the length of the logfiles
6
set a=$1
7
set tmp=setl$$
8
shift
9
unset noclobber
10
foreach i ($argv)
11
tail -$a $i >/tmp/$tmp
12
cp /tmp/$tmp $i
13
chmod 666 $i
14
end
15
rm -f /tmp/$tmp