html -> md

This commit is contained in:
Michael Herman 2014-06-10 09:07:57 -05:00
parent c06e6de4f3
commit 8138de63fe
2 changed files with 18 additions and 0 deletions

17
14_html_to_markdown.sh Normal file
View File

@ -0,0 +1,17 @@
# Convert all html files in a single directory to markdown
#
# 1. Install pandoc
# 2. Run the script
FILES=*.html
for f in $FILES
do
# extension="${f##*.}"
filename="${f%.*}"
echo "Converting $f to $filename.md"
`pandoc $f -t markdown -o ../mds/$filename.md`
# uncomment this line to delete the source file.
# rm $f
done

View File

@ -13,3 +13,4 @@
1. **11_optimize_images_with_wand.py**: recursively grab images from a directory, then optimize them for the web 1. **11_optimize_images_with_wand.py**: recursively grab images from a directory, then optimize them for the web
1. **12_csv_split.py**: Splits a CSV file into multiple files based on command line arguments. 1. **12_csv_split.py**: Splits a CSV file into multiple files based on command line arguments.
1. **13_random_name_generator.py**: random name generator 1. **13_random_name_generator.py**: random name generator
1. ***14_html_to_markdown.sh**: Convert all html files in a single directory to markdown