Skip to content

Instantly share code, notes, and snippets.

@raulillana
Last active August 29, 2015 13:56
Show Gist options
  • Save raulillana/9000400 to your computer and use it in GitHub Desktop.
Save raulillana/9000400 to your computer and use it in GitHub Desktop.
Bash script for recursive renaming folders only.
find -maxdepth 1 -type d -exec bash -c 'echo mv $0 ${0/changethis/forthis}' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment