Skip to content

Instantly share code, notes, and snippets.

@FleXoft
Last active June 11, 2018 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FleXoft/61da9b1eadb6b5aab122a16bb279c564 to your computer and use it in GitHub Desktop.
Save FleXoft/61da9b1eadb6b5aab122a16bb279c564 to your computer and use it in GitHub Desktop.
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