title: rename files& directories {searchstr} with {replacestr}
body: <p>I have an application (Templify) that creates a templatized directory structure, but it seems to not be able to rename the "&#95;&#95;NAME&#95;&#95;" with what I've identified as the target.  </p>
  
  <p>This is fine if I can find a clean way to rename all files &amp; directories with my replacement text.</p>
  
  <p>I found a rename.pl method that renames files, and I found some code that removes underscores in file names and replaces it with spaces... but when I modify the code to put in my search terms, it never seems to work.</p>
  
  <p>So, basically, I need to replace "&#95;&#95;NAME__" with something like "Project-Name".</p>
  
  <p>I'm happy to modify the search strings for each future reuse, but I'd love to figure out how to create a file to which I can pass ARGS.</p>
  
  <p>I'm on XP and can use cygwin (cygwin doesn't seem to have 'rename' which makes it hard to locate linux-type solutions with using the function called 'rename'....)</p>
  
  <p>I did find <a href="http://www.mattweber.org/2007/03/04/python-script-renamepy/" rel="nofollow">this</a> which is easy to use for files in the current directory, but I don't know enough to tell it to recurse into sub-directories.</p>
  
  <p>Any help would be great.</p>
  
  <p>Thanks,
  Scott</p>