Skip to content

Instantly share code, notes, and snippets.

@codehacken
Created March 16, 2019 22:53
Show Gist options
  • Save codehacken/5e5c7028611d52909b516fbb716d1ad6 to your computer and use it in GitHub Desktop.
Save codehacken/5e5c7028611d52909b516fbb716d1ad6 to your computer and use it in GitHub Desktop.
Replace part of all the names of files in a folder.
find . -type f -exec rename 's/<original string>/<string to be replaced with>/g' {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment