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
| # This script was created to convert a directory full | |
| # of markdown files into rst equivalents. It uses | |
| # pandoc to do the conversion. | |
| # | |
| # 1. Install pandoc from http://johnmacfarlane.net/pandoc/ | |
| # 2. Copy this script into the directory containing the .md files | |
| # 3. Ensure that the script has execute permissions | |
| # 4. Run the script | |
| # | |
| # By default this will keep the original .md file |
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
| #!/bin/bash | |
| # Converts HTML from https://exportmyposts.jazzychad.net/ exports to Markdown | |
| POSTS_DIR=/Users/richard/Desktop/d6y/posts | |
| for file in $POSTS_DIR/*.html | |
| do | |
| echo $file |
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
| #!/bin/bash | |
| # Convert Markdown to Wordpress blogging format | |
| # Required program(s) | |
| req_progs=(ascii2uni pandoc) | |
| for p in ${req_progs[@]}; do | |
| hash "$p" 2>&- || \ | |
| { echo >&2 " Required program \"$p\" not installed."; exit 1; } | |
| done |
NewerOlder