Forked from dessibelle/wordpress-nfd-to-nfc-filename-conversion.sh
Created
November 11, 2015 17:49
-
-
Save paularmstrong/4ff467d12a00b53c7861 to your computer and use it in GitHub Desktop.
Two commands needed to perform UTF-8 NFD to NFC decomposition on all files in a directory, and uploading the resulting directory to a webserver. Useful for treating files created on a Linux server (NFC), downloaded to Mac OS X (NFD) and needing to be uploaded back to the original server (NFC). Must, naturally, be run on Linux or at least used on…
This file contains hidden or 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
#!/usr/bin/env bash | |
convmv -f utf8 -t utf8 --nfc --replace --nosmart --no-test -r uploads/ | |
rsync -avz -e ssh uploads/ username@host:mysite.com/public_html/wordpress/wp-content/uploads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment