You could probably build this up with the find command, which can recursively match various file attributes and run a command (eg., cp) on each file that matches. If you need help on the syntax, let me know, but I probably won't have much time until the weekend (I'd have to check on how to do the comparison of the source file to a destination file). This sounds like a common use of the find command, so you might be able to find the syntax for this specific application already written out on the web somewhere.
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/
