Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: an update command
- X-seq: zsh-users 15062
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: an update command
- Date: Wed, 19 May 2010 13:01:56 +0000 (UTC)
- Connect(): No such file or directory
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns9D7D6AFA2B217zzappergmailcom@xxxxxxxxxxxx>
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