Posted By

joe-bbb on 02/22/10


search replace perl

Versions (?)

rename recursive file extensions

 / Published in: Perl

This replaces all .pngx files with .png

  1. find . -name '*.pngx' -exec rename 's/\.pngx$/\.png/' {} \;
  3. or
  5. find . -name '*.pngx' | xargs rename 's/\.pngx$/\.png/' {} \;

Report this snippet  


RSS Icon Subscribe to comments
Posted By: renamer on March 21, 2010

Use XP's for command. For example from the command line (in a batch file use %%x instead) to do a recursive move do

for /r %x in (foo) do move "%x" "drive:\path\bar"

and to do a recursive rename do

File Renamer

You need to login to post a comment.