projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 83/08/05 13:35:04 by sam
[unix-history]
/
usr
/
src
/
old
/
berknet
/
setlength.sh
#! /bin/sh
#
# @(#)setlength.sh 4.1 (Berkeley) %G%
#
# 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