Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: replace all versions of a file in hierachy with a more recent version
- X-seq: zsh-users 10382
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: replace all versions of a file in hierachy with a more recent version
- Date: Fri, 16 Jun 2006 13:49:33 +0100
- In-reply-to: <Xns97E48B452D0F7zzappergmailcom@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns97E48B452D0F7zzappergmailcom@xxxxxxxxxxx>
zzapper wrote:
> I want to replace all versions of a file in hierachy with a more recent
> version
Depending on what the criterion is for files that need replacing,
for f in oldlocation/**/*(.); do
cp newlocation${f##oldlocation} $f
done
pws
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
Messages sorted by:
Reverse Date,
Date,
Thread,
Author