title: Need to rename mulitiple files recursively using zmv
body: <p>So I'm battling with a script at the moment. I'm using zsh. I've tried various combinations, but not coming right. Trying to change file names recursively. So basically I have a variable: file1.
  What I'm trying to do is something like this:</p>
  <pre><code>zmv -W ${file1}/'**/*(test)*' ${file1}/'**/*red*'
  </code></pre>
  <p>This should change any file or folder in subdirectories recursively from test to red. Hence:
  if $file1= /var/log then it should change:</p>
  <p>/var/log/jump/green<strong>test</strong>.txt to /var/log/jump/green<strong>red</strong>.txt</p>
  <p>also</p>
  <p>/var/log/jump/1/1/<strong>test</strong>/<strong>test</strong>.xyz to /var/log/jump/1/1/<strong>red</strong>/<strong>red</strong>.xyz</p>
  <p>Basically if I did a search:
  <code>ls **/*test*</code> it would list all the files and folders recursively that had the word 'test' contained within them. With the zmv solution, I'd like to &quot;find&quot; those instances and change test to red.</p>
  <p>How can I do this?</p>