Skip to content

Instantly share code, notes, and snippets.

@TerryMooreII
Created July 13, 2017 13:06
Show Gist options
  • Save TerryMooreII/5a25265d7de0d811457e1329198e9ff5 to your computer and use it in GitHub Desktop.
Save TerryMooreII/5a25265d7de0d811457e1329198e9ff5 to your computer and use it in GitHub Desktop.
Batch Rename files and folder recursively
find . -depth -name '*a_*' -execdir bash -c 'mv "$0" "${0//a_/b_}"' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment