Skip to content

Instantly share code, notes, and snippets.

@furkanayhan
Created June 5, 2017 08:03
Show Gist options
  • Save furkanayhan/f5ee8c2312c3be1057b4d2eea13e48cc to your computer and use it in GitHub Desktop.
Save furkanayhan/f5ee8c2312c3be1057b4d2eea13e48cc to your computer and use it in GitHub Desktop.
find and rename all files
find . -name 'OLDFILENAMEPARTIAL*' -type f -exec bash -c 'mv "$1" "${1//OLDFILENAMEPARTIAL/NEWFILENAMEPARTIAL}"' -- {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment