Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2001 09:28:49 -0700 (PDT)
From:      Linh Pham <lplist@closedsrc.org>
To:        Drew Tomlinson <drewt@writeme.com>
Cc:        "FreeBSD Questions (E-mail)" <freebsd-questions@FreeBSD.org>
Subject:   Re: Redirect Output Appended to an Existing File?
Message-ID:  <Pine.BSF.4.33.0105070928340.97088-100000@q.closedsrc.org>
In-Reply-To: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9BF@ldcmsx01.lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-05-07, Drew Tomlinson scribbled:

# 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?

Replace > with >> to do an append.

-- 
Linh Pham
[lplist@closedsrc.org]

// 404b - Brain not found


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?Pine.BSF.4.33.0105070928340.97088-100000>