Skip to content

Instantly share code, notes, and snippets.

@johndryan
Forked from Miista/Pandoc multiple files
Last active April 15, 2017 18:24
Show Gist options
  • Save johndryan/14a9798d7771b8880834cf421fd8a45d to your computer and use it in GitHub Desktop.
Save johndryan/14a9798d7771b8880834cf421fd8a45d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Pandoc: convert multiple html files to markdown
# Requires pandoc (installed via homebrew)
for f in *.html ; do pandoc ${f} -f html -t markdown -s -o ${f}.md ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment