Created
January 13, 2014 22:56
-
-
Save jottr/8409745 to your computer and use it in GitHub Desktop.
Changes the matching string in the filenames containg that string.
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
for f in *; do n=$(echo "$f" | sed -e "s/oldString/newString/"); mv "$f" "$n"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment