synchronizing part of a file
Brad Hards
bhards at bigpond.net.au
Tue Oct 15 11:35:00 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 15 Oct 2002 21:20, rolf.hausammann at accenture.com wrote:
> Hi all,
>
> I would like to synchronize a part of the source file with a part of the
> destination file. In detail I would like to
> - synchronize a file on a remote host from line "n" onwards with the
> file content on the local host starting with line "n" in the file.
> - the firs "n" lines of the files on the local and remote host should
> not be changed.
How about a shell script that split (1)'s the file into the unique part and
the common part, rsync the common part, and cat (1)'s the file back together?
Brad
- --
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9q/t2W6pHgIdAuOMRAsZgAKCEhgLZv8+WsoU/ozE5PwBHu+dyNgCfVq5q
YfHgA7SZa0oGIBtCDRI/ldw=
=bFAj
-----END PGP SIGNATURE-----
More information about the rsync
mailing list