From owner-freebsd-questions@freebsd.org Sat Aug 5 13:49:31 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D755DDD77A2 for ; Sat, 5 Aug 2017 13:49:31 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B072A76111 for ; Sat, 5 Aug 2017 13:49:31 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1501940965; x=1504532965; h=x-thread-info:date:from:to:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; bh=UdIj6bxBbySPn7STC/onhUusFtC2Fs6zIrJtaV0Axpc=; b=ngOCqd6Cp+V3/CRtdpmET8jQ0VbbkZa7/Pi0wF2lJMpSV0iv+Qg8djpar8fMNlMgwS37gIr6FPbDx8ieQR1w7HuHyNYq2q/ct+oxmZmAN2rTalNxxRv2uPquxybr/yARa4EUTsGuBFdC2PxGKVduCBMGEhiz57AZE7OTIARAIXE= X-Thread-Info: NDI1MC4xMi5kOTAwMDAwMDg2NDQ2MC5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r4.us-east.aws.in.socketlabs.com (r4.us-east.aws.in.socketlabs.com [52.5.202.82]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 5 Aug 2017 08:49:04 -0400 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.us-east.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sat, 5 Aug 2017 08:49:09 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1ddyWx-000AHc-0H for freebsd-questions@freebsd.org; Sat, 05 Aug 2017 12:50:11 +0000 Date: Sat, 5 Aug 2017 13:48:54 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Wildcard on redirection Message-Id: <20170805134854.053bdbc352d7aeec7a7f6650@sohara.org> In-Reply-To: <25f022f4-4778-3f28-8d78-1f1b292f849e@cloudzeeland.nl> References: <25f022f4-4778-3f28-8d78-1f1b292f849e@cloudzeeland.nl> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2017 13:49:31 -0000 On Sat, 5 Aug 2017 13:58:50 +0200 Jos Chrispijn wrote: > I have this number of .log files which I would like to empty. > > Using > > echo > *.log truncate -s 0 *.log -- Steve O'Hara-Smith