html -> md
This commit is contained in:
parent
c06e6de4f3
commit
8138de63fe
17
14_html_to_markdown.sh
Normal file
17
14_html_to_markdown.sh
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user