On Thursday 03 May 2007 21:36, [EMAIL PROTECTED] wrote:
> cp -u sourceFile targetFile
>
> You 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.

I'm sorry I didn't see this until just now.


This applies only to output redirection in the shell (the ">" operator 
and all the non-appending variants). It has no effect whatsoever on the 
operation of "cp," which cannot even see that option, which is a shell 
construct only.

Furthermore, while I know this is implemented by BASH, if you use a 
different shell, you should check first for the equivalent / 
counterpart in that shell.


> For more info
> 
<http://www.cyberciti.biz/tips/howto-keep-file-safe-from-overwriting.html>
>
> ...
>
> chika


Randall Schulz
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to