Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2006 17:46:03 +0100
From:      albi <albi@scii.nl>
To:        fbsd_user@a1poweruser.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: command to add file contents to end of existing file
Message-ID:  <20060104174603.d0d4f9e5.albi@scii.nl>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGEEAJHLAA.fbsd_user@a1poweruser.com>
References:  <MIEPLLIBMLEEABPDBIEGEEAJHLAA.fbsd_user@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Jan 2006 11:40:38 -0500
"fbsd_user" <fbsd_user@a1poweruser.com> wrote:

> What is command or command sequence to copy the contents of file B 
> to the end of the contents of file A?

i would try something like : 

cat A B >> C ; cp A A-backup ; rm A ; mv C A

-- 
grtjs, albi
gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import



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