Mailinglist Archive: opensuse (2859 mails)
| < Previous | Next > |
Re: [opensuse] the cp command
- From: M Harris <harrismh777@xxxxxxxxxxxxx>
- Date: Thu, 3 May 2007 23:25:26 -0500
- Message-id: <200705032325.26277.harrismh777@xxxxxxxxxxxxx>
On Thursday 03 May 2007 22:58, James D. Parra wrote:
> Is there an
> argument that I can use with the 'cp' command to accomplish this?
I have not used cp for this... but you might try tar.
The -u switch of tar will only append files to an existing tarball that are
newer than the copy in the existing archive.
So, you tar up the first directory... and then tar the second directory
(appending to the first archive) using the -u switch... and then extract
the entire archive to a new directory.
--
Kind regards,
M Harris <><
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> Is there an
> argument that I can use with the 'cp' command to accomplish this?
I have not used cp for this... but you might try tar.
The -u switch of tar will only append files to an existing tarball that are
newer than the copy in the existing archive.
So, you tar up the first directory... and then tar the second directory
(appending to the first archive) using the -u switch... and then extract
the entire archive to a new directory.
--
Kind regards,
M Harris <><
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |