Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!spool2.mu.edu!sol.ctr.columbia.edu!emory!wuarchive!cec2!news From: jcb@wucs1.wustl.edu (James Christopher Beard) Newsgroups: comp.unix.misc Subject: smart copy/update routine Message-ID: <1991Jan28.155450.24449@cec1.wustl.edu> Date: 28 Jan 91 15:54:50 GMT Sender: news@cec1.wustl.edu (USENET News System) Reply-To: beard@informatics.wustl.edu Organization: Washington University, St. Louis MO Lines: 18 Is there such a thing available as unix source? What I need is a program that can be told to copy files from source to target iff the file to be copied does not exist on the target or the source version is newer than the version in the target directory. (A useful option would be to change the above "or" to an "and," so that only files already present at the target would be copied, and only if the source version were newer. As an alternative, is there source for the "newer" utility available? I have seen a man page for it, and it would allow one to write scripts with the above functionality, but I can't find source or executable. If I learn anything, I'll summarize for the net. Thanks for any help. James Beard beard@informatics.wustl.edu