Find file from directory then change file encoding

find . -type f -iname “*.html” -exec sh -c ‘iconv -c -f sjis -t utf-8 -o converted “$1” && mv converted “$1″‘ — {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.