Rename .DOC to .doc recursively

This is the easy way to change all files matching a patten.

$ find /path/to/images -name ‘*.DOC’ -exec rename “s/.DOC/.doc/g” {} ;

 

Leave a Reply

Your email address will not be published. Required fields are marked *