Last active
June 11, 2018 08:20
-
-
Save FleXoft/61da9b1eadb6b5aab122a16bb279c564 to your computer and use it in GitHub Desktop.
Recursively change filename part
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 . -type f -name "*copy.jpg" -exec sh -c 'mv "{}" "$( echo {} | sed 's/ copy/_ORIGINAL/' )"' \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment