Renaming multiple files at a time
Submitted by drjunior on Wed, 05/29/2013 - 22:27
This command took me 20 minutes to find. Let's hope that this helps someone and me next time I need to do something similar.
find . -name '*foo*' -type f -exec bash -c 'mv "$1" "${1/foo/bar}"' -- {} \;
- Log in to post comments