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



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