From owner-freebsd-questions Mon May 7 9:36:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id 9175337B422 for ; Mon, 7 May 2001 09:36:39 -0700 (PDT) (envelope-from lucas@slb.to) Received: (qmail 2695 invoked by uid 1000); 7 May 2001 16:36:58 -0000 Date: Mon, 7 May 2001 11:36:58 -0500 From: Lucas Bergman To: Drew Tomlinson Cc: freebsd-questions@FreeBSD.org Subject: Re: Redirect Output Appended to an Existing File? Message-ID: <20010507113658.C21031@billygoat.slb.to> Reply-To: lucas@slb.to References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from drewt@writeme.com on Mon, May 07, 2001 at 09:34:27AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Is there a way to use the redirect command to append output to an > existing file? For example, I issue a command like this: > > some_commmand > /var/log/logfile > > If logfile exists, the current version will be overwritten with the > new version. Is there a way to have the output appended to the file > instead of overwritten? Use '>>' instead of '>'. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message