Skip to content

Instantly share code, notes, and snippets.

@Daandelange
Created February 14, 2018 19:36
Show Gist options
  • Save Daandelange/f3ea552a37a38c91e1f437d759ae328f to your computer and use it in GitHub Desktop.
Save Daandelange/f3ea552a37a38c91e1f437d759ae328f to your computer and use it in GitHub Desktop.
Getkirby: Automatically rename content.txt files for multilang websites
# Renames any .txt file to .fr.txt
# Change the lang.code according to your lang.
# I use it when switching monolang sites to multilang.
# cd to /your/site/content/
# Test drive for renaming ()
find ./ -type f -exec rename -n 's/\.txt$/.fr.txt/' '{}' \;
# Once you're sure, re-run without -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment