Skip to content

Instantly share code, notes, and snippets.

@netojoaobatista
Created May 29, 2013 16:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save netojoaobatista/5671777 to your computer and use it in GitHub Desktop.
Save netojoaobatista/5671777 to your computer and use it in GitHub Desktop.
#!/bin/bash
ICONV="iconv -f UTF-8 -t ISO-8859-1"
find $1 -type f -iname "*.html" | while read fn; do
cp ${fn} ${fn}.utf8
$ICONV < ${fn}.utf8 > ${fn}
rm ${fn}.utf8
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment