Last active
September 30, 2015 12:08
-
-
Save Phlow/fd983d09e305bda1533b to your computer and use it in GitHub Desktop.
Rename files and replace text with new text
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
# Rename file and replace OLDTEXT with NEWTEXT | |
# for filename in *.jpg; do mv "$filename" "${filename//OLDTEXT/NEWTEXT}"; done | |
# replace large with nothing | |
for filename in *.jpg; do mv "$filename" "${filename//large/}"; done | |
for filename in *.xml; do mv "$filename" "${filename//_meta.xml/.md}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment