Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 1997 17:13:46 -0800 (AKDT)
From:      Steve Howe <un_x@anchorage.net>
To:        Francisco Reyes <francisco@natserv.com>
Cc:        FreeBSD questions <questions@FreeBSD.ORG>
Subject:   Re: Any program to maintain logs?
Message-ID:  <Pine.BSF.3.95q.970524171230.20368D-100000@aak.anchorage.net>
In-Reply-To: <199705240459.AAA10773@federation.addy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 24 May 1997, Francisco Reyes wrote:

> Is there a program in FreeBSD that can be used to trimm log files? I am
> interested in a program which could keep either a determined number of
> lines per file or lines which are a determined number of days old.

yeah - sed or awk.  awk is pretty cool - check it out.
but you probably just want sed.  i have some good
docs on them at my FTP site below.
-------------------------------------------------------------------------
 Sleep: a sign a caffeine deprivation ... http://www.anchorage.net/~un_x
-------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970524171230.20368D-100000>