From owner-freebsd-questions@FreeBSD.ORG Wed Aug 29 20:01:48 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A6953106566C for ; Wed, 29 Aug 2012 20:01:48 +0000 (UTC) (envelope-from ports@webrz.net) Received: from webrz.xs4all.nl (webrz.xs4all.nl [82.95.248.216]) by mx1.freebsd.org (Postfix) with ESMTP id 5E9AA8FC14 for ; Wed, 29 Aug 2012 20:01:48 +0000 (UTC) Received: from webrz.xs4all.nl (localhost [127.0.0.1]) by webrz.xs4all.nl (Postfix) with ESMTP id 99E115098D for ; Wed, 29 Aug 2012 21:57:35 +0200 (CEST) Received: from [10.10.10.44] (chimea.webrz.net [10.10.10.44]) by webrz.xs4all.nl (Postfix) with ESMTPA id 75AB65086B for ; Wed, 29 Aug 2012 21:57:35 +0200 (CEST) Message-ID: <503E7495.7050306@webrz.net> Date: Wed, 29 Aug 2012 21:59:17 +0200 From: Jos Chrispijn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP @triton.webrz.net Cc: Subject: Empty logfiles 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, 29 Aug 2012 20:01:48 -0000 Stupic question: I have a directory with 120 logfiles (extension *.log). Can someone tell me how I can empty these logfiles in one command? I thought 'echo > *.log' would work, but no way K-) thanks Jos Chrispijn