Created
February 14, 2018 19:36
-
-
Save Daandelange/f3ea552a37a38c91e1f437d759ae328f to your computer and use it in GitHub Desktop.
Getkirby: Automatically rename content.txt files for multilang websites
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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