Change the Extension of Multiple Files in Linux

Rename all *.info files in one folder

rename .info .txt *.info

That should read as..

rename
Do the same operation recursively in a directory tree

find . -name “*.info” -exec rename .info .txt {} \;

Those double quotes around *.info are important - don’t remove them

Tags:

This entry was posted on Sunday, February 24th, 2008 at 12:04 am and is filed under gnu/linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.