On other thought, you might try

cp -durp

Check the man page for the meaning of the options, but the most
important ones are -u for update and -r for recursive. I've never used
this particular set of options before, so I strongly suggest you test
this out and make sure it does what you want before you use it on
important files.

On Mon, Apr 08, 2002 at 11:48:32AM -0300, Alberto Monteiro wrote:
> Is there any simple Linux command that does the equivalent
> to M$-DOS "xcopy <dir1>\<file1> <dir2> /F/D/S" ?
> 
> I would like to copy a whole directory, including subdirectories,
> but _not_ copy when the destination file is not older than
> the source file.
> 
> Alberto Monteiro
> 

-- 
"Erik Reuter" <[EMAIL PROTECTED]>       http://www.erikreuter.com/

Reply via email to