Skip to content

Instantly share code, notes, and snippets.

Last active June 11, 2018 08:20
What would you like to do?
Recursively change filename part
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