zsh-users
 help / color / mirror / code / Atom feed
From: "François Gannaz" <francois.gannaz@free.fr>
To: zsh-users@zsh.org
Subject: Re: an update command
Date: Wed, 19 May 2010 12:26:27 +0200	[thread overview]
Message-ID: <20100519122627.75a707e3@coriolan> (raw)
In-Reply-To: <Xns9D7D6AFA2B217zzappergmailcom@80.91.229.10>

Le 2010-05-19, zzapper <david@tvis.co.uk> 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


  parent reply	other threads:[~2010-05-19 10:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19  9:31 zzapper
2010-05-19 10:02 ` Peter Stephenson
2010-05-19 10:26 ` François Gannaz [this message]
2010-05-19 10:37 ` Joke de Buhr
2010-05-19 13:01 ` zzapper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100519122627.75a707e3@coriolan \
    --to=francois.gannaz@free.fr \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).