Date: Tue, 12 Jan 2010 14:48:48 +0200 From: Nikos Vassiliadis <nvass9573@gmx.com> To: Jos Chrispijn <kernel@webrz.net> Cc: freebsd-questions@FreeBSD.org Subject: Re: Buld echo Message-ID: <4B4C6FB0.9050309@gmx.com> In-Reply-To: <4B4C4D2D.2040609@webrz.net> References: <4B4C4D2D.2040609@webrz.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/12/2010 12:21 PM, Jos Chrispijn wrote: > I have 35 log files that I want to flush once a day. > In order to keep them exist I now do an 'echo > logfile.log' > How can I do such in one command having the same effect on all log files? You could use truncate(1). Something like: truncate -s 0 file1 file2 file2 ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B4C6FB0.9050309>