Skip to content

Instantly share code, notes, and snippets.

@very
Created November 3, 2012 05:26
Show Gist options
  • Save very/4006156 to your computer and use it in GitHub Desktop.
Save very/4006156 to your computer and use it in GitHub Desktop.
find . -iname "*.htm" -exec bash -c "iconv -f WINDOWS-1252 -t UTF-8 \"{}\" | html2text -utf8 -nometa -style pretty > \"`basename \"{}\" .htm`\".txt" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment