This file contains 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
#!/usr/bin/env python3 | |
# To run: | |
# 1. After downloading, cd to the directory and'chmod -x generate_md.' This tells the shell to make generate_md | |
# into an executable. | |
# 2. 'echo My Awesome Post | ./generate_md' will generate a new markdown file with the post name "My Awesome Post" | |
# and name it "yyyy-mm-dd-my-awesome-post.markdown". | |
import glob, sys, re | |
from time import gmtime, strftime |