Created
November 3, 2017 23:36
-
-
Save dylan-chong/e7b16a982e604ba62fc52e3ab0f98196 to your computer and use it in GitHub Desktop.
Batch rename files
This file contains 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 * | xargs rename -n 's/part-of-filename-to-replace/replacement/' # -n for dry run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have found a better way:
Using Vim, look at the instructions for
:h rename-files
This is much better because you can confirm the results of the rename manually, and even remove/add files from the list