Last active
December 19, 2015 01:18
-
-
Save dnpp73/5874517 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
SJIS_HTMLS=`find . -type f -name "*.htm*"` | |
for SJIS_HTML in $SJIS_HTMLS; do | |
echo $SJIS_HTML | |
mv $SJIS_HTML "${SJIS_HTML}_bak" | |
nkf -w8 "${SJIS_HTML}_bak" >> $SJIS_HTML | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment