Skip to content

Instantly share code, notes, and snippets.

View mihukss's full-sized avatar

Misha Ryzhov mihukss

View GitHub Profile
@mihukss
mihukss / docx_to_md.sh
Last active October 14, 2022 06:25 — forked from hugorodgerbrown/md_to_rst.sh
Shell script for converting a batch of *.docx files into *.md using Pandoc. Works well with spaces in titles.
# This script was created to convert a directory full
# of docx files into md 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