From owner-freebsd-questions@FreeBSD.ORG Wed Jan 12 20:01:33 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1506D1065694 for ; Wed, 12 Jan 2011 20:01:33 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id DB19B8FC2B for ; Wed, 12 Jan 2011 20:01:32 +0000 (UTC) Received: by pvc22 with SMTP id 22so157157pvc.13 for ; Wed, 12 Jan 2011 12:01:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=4QnQDmR2LPoipF+9kYkyDF0IMYukoPMMYd/rpLlsWsg=; b=qxIu50EE1IudCAIurZnmRlOtt+x8FoXxIi2s7WInYENQcg4BHbV6c6IF858StOMnYt xIrwzVdS7NoPmkxK+frlMxGIaM81S9SCxGndhxK1WUrHrfBqkfe+edOO0xOjNWupkm2b 2GDrqriaT6obI6qPK+fwpRcdvd92Owc2HGHdA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=PUU8BUH+JP9UuljFTcmwcfb6PoqegARX8PdUgCY60/czKeRXnjVV2NKNQnLXDAa8xu ylf5WrsazvUJmczy/GAE4zfi9syDKZvQZSBo1D1vfc6WmJzKU/jO9Oa844FINsOltChX xWSitiPrfPARpufKAtZpQlhAdc62npqBh8ubA= MIME-Version: 1.0 Received: by 10.142.230.21 with SMTP id c21mr172390wfh.395.1294862492079; Wed, 12 Jan 2011 12:01:32 -0800 (PST) Received: by 10.142.166.3 with HTTP; Wed, 12 Jan 2011 12:01:32 -0800 (PST) In-Reply-To: <20110112205804.3ec42ec8.freebsd@edvax.de> References: <4D2DFEAE.9060403@bah.homeip.net> <20110112205804.3ec42ec8.freebsd@edvax.de> Date: Wed, 12 Jan 2011 21:01:32 +0100 Message-ID: From: Redd Vinylene To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions , Bernt Hansson Subject: Re: Simple command to reset / clear all logs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2011 20:01:33 -0000 On Wed, Jan 12, 2011 at 8:58 PM, Polytropon 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 as a token of my appreciation for your support! Redd