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

Re: an update command



Le 2010-05-19, zzapper <david@xxxxxxxxxx> a Ãcrit :
> 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 
> 
> I guess I can hack a script up to do this but how would you do this? 

That's not related to zsh, but I would use `rsync` with `--existing`.
Rsync is especially useful when files are updated.

Regards
--
FranÃois



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