Date: Wed, 12 Jan 2011 21:01:32 +0100 From: Redd Vinylene <reddvinylene@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: questions <questions@freebsd.org>, Bernt Hansson <bernt@bah.homeip.net> Subject: Re: Simple command to reset / clear all logs? Message-ID: <AANLkTim9f8LdSib3PU-Vf3JY8Tx-nLV1eOCxcbNz%2BMkV@mail.gmail.com> In-Reply-To: <20110112205804.3ec42ec8.freebsd@edvax.de> References: <AANLkTimMvTxsdRXhxzXwjdTDzQ5U7m7kzVc0orGwxM5U@mail.gmail.com> <4D2DFEAE.9060403@bah.homeip.net> <AANLkTi=bbT7d=FvFHFpWpZgXb_cHgNGaa_ZS%2BSdWxXua@mail.gmail.com> <20110112205804.3ec42ec8.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 12, 2011 at 8:58 PM, Polytropon <freebsd@edvax.de> wrote: > # for FILE in /var/log/*; do cat /dev/null > ${FILE}; done > > That would be better than my first suggestion. You can exchange > the part "/var/log/*" for any `find ...` command that specifies > the intended target(s) of your operation better than the builtin > shell expansion of the * expression. > > Now that's just beautiful, man :-) Thanks a lot :-) Please accept this gift <http://www.zshare.net/download/552763591f4802ce/>as a token of my appreciation for your support! Redd
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim9f8LdSib3PU-Vf3JY8Tx-nLV1eOCxcbNz%2BMkV>