To change the extension of multiple files, e.g. rename
find . -type f -name "*.html.bak" -exec sh -c 'mv {} `basename "{}" .bak`' \;
To change the extension of multiple files, e.g. rename
find . -type f -name "*.html.bak" -exec sh -c 'mv {} `basename "{}" .bak`' \;
Last modified: 09/11/2011 Tags: find
Other pages possibly of interest:
This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan