Skip to content

Instantly share code, notes, and snippets.

@aaerofeev
Last active January 5, 2017 09:02
Show Gist options
  • Save aaerofeev/b8f4d84d13c705f4ccd4e8671ce0efd1 to your computer and use it in GitHub Desktop.
Save aaerofeev/b8f4d84d13c705f4ccd4e8671ce0efd1 to your computer and use it in GitHub Desktop.
Theme Drupal 8 rename
find . -type f -name "THEMENAME*" -print0 | while read -r -d '' file; do
mv "$file" "${file//THEMENAME/bonjour}"
done
find . -type f -print0 | xargs -0 sed -i "" "s/THEMETITLE/Bonjour/g"
find . -type f -print0 | xargs -0 sed -i "" "s/THEMENAME/bonjour/g"
renamer --regex --find '^(\d{2}).+\.mp3' --replace '$1kaz.mp3' */*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment