Skip to content

Instantly share code, notes, and snippets.

@FleXoft

FleXoft/recursive rename

Last active Jun 11, 2018
Embed
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
You can’t perform that action at this time.