Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2001 11:36:58 -0500
From:      Lucas Bergman <lucas@slb.to>
To:        Drew Tomlinson <drewt@writeme.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: Redirect Output Appended to an Existing File?
Message-ID:  <20010507113658.C21031@billygoat.slb.to>
In-Reply-To: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9BF@ldcmsx01.lc.ca.gov>; from drewt@writeme.com on Mon, May 07, 2001 at 09:34:27AM -0700
References:  <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9BF@ldcmsx01.lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010507113658.C21031>