Created
May 11, 2017 19:15
-
-
Save delucis/928387f530d9e7ed3c3ebf220e09a3de to your computer and use it in GitHub Desktop.
Bash rename multiple 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
# use string replacement to rename parts of all matching filenames | |
# based on http://stackoverflow.com/questions/7450818/rename-all-files-in-directory-from-filename-h-to-filename-half | |
for file in *.wav; do mv "$file" "${file/selection/substitution}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment