Skip to content

Instantly share code, notes, and snippets.

@aliva
Created March 22, 2012 10:11
Show Gist options
  • Save aliva/2157549 to your computer and use it in GitHub Desktop.
Save aliva/2157549 to your computer and use it in GitHub Desktop.
convert all html files in a directory to markdown
# uses http://github.com/aaronsw/html2text
HTML2TEXT=~/bin/html2text/html2text.py
for f in `find | grep html$ | cut -b 3-`
do
echo $f
$HTML2TEXT $f > ${f%.html}.md
# rm $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment