cp -u sourceFile targetFile u can update only the latest file see man cp first (it also work for other command) :D
for more strict u can "set -o noclobber" on cli if u don't wanna overwrite the existing file with older o newest file for more info http://www.cyberciti.biz/tips/howto-keep-file-safe-from-overwriting.html always happy being "baka" person.... so i can learn much more cheers, chika > Hello, > > I have two directories that are almost identical to each other and I need > to > copy the contents of the source directory over the to the target > directory, > but without overwriting any files that are newer on the target. Is there > an > argument that I can use with the 'cp' command to accomplish this? > > I have the following to preserve time stamps and permissions; cp -pRv > /mnt/userdir /media/userdir > > Thank you, > > James > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]