Skip to content

Instantly share code, notes, and snippets.

@catichenor
Last active September 24, 2018 17:29
Show Gist options
  • Save catichenor/7d2ad09812ea431c61f373fdc38f5e53 to your computer and use it in GitHub Desktop.
Save catichenor/7d2ad09812ea431c61f373fdc38f5e53 to your computer and use it in GitHub Desktop.
Convert a series of Markdown table files to HTML/Excel tables using pandoc
#!/usr/bin/env bash
find . -maxdepth 1 -type f -name '*.md' | xargs -I {} basename "{}" .md | xargs -I {} pandoc -f markdown_mmd -t html {}.md -o {}.xls
@catichenor
Copy link
Author

catichenor commented Sep 24, 2018

Anaconda3 variation for a user installation on Windows (via Git Bash): find . -maxdepth 1 -type f -name '*.md' | xargs -I {} basename "{}" .md | xargs -I {} ~/AppData/Local/Continuum/anaconda3/Scripts/pandoc.exe -f markdown_mmd -t html {}.md -o {}.xls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment