Created
March 22, 2012 10:11
-
-
Save aliva/2157549 to your computer and use it in GitHub Desktop.
convert all html files in a directory to markdown
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
# 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