Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: an update command



zzapper wrote in news:Xns9D7D6AFA2B217zzappergmailcom@xxxxxxxxxxxx:

> Hi
> when copying files from a test server to a live server eg
> 
>>cp $T/config.php $L
> 
> I only want to do the copy if the file ALREADY exists in the destination 
> directory 

Thanks for responses all good stuff.

Curiously cp has a parameter -update which only copies if src newer than 
dest, unfortunately  (for me) will create a new dest file if none exists



-- 
zzapper
http://zzapper.co.uk/ Technical Tips



Messages sorted by: Reverse Date, Date, Thread, Author