Created
January 5, 2017 23:43
-
-
Save peschee/92008ff9ff66dc73785bb93449e111a5 to your computer and use it in GitHub Desktop.
Change extension of all files in a directory (and its subdirectories). @see http://askubuntu.com/questions/35922/how-to-change-extension-of-multiple-files-from-command-line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /the/path -depth -name "*.abc" -exec sh -c 'mv "$1" "${1%.abc}.edefg"' _ {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment