ulthar.xyz > Repos

mdtable2csv

A very simple markdown table to CSV converter with no dependencies
About Files Commits git clone https://ulthar.xyz/repos/mdtable2csv/mdtable2csv.git

Files

README.md

mdtable2csv.awk

A simple AWK script for converting Github-Flavoured Markdown tables to RFC4180 CSV spreadsheets. Consequently, it also has reasonable support for org-mode tables and general plain-text tables created using Emacs' table.el. I've been using this script with GAWK, but I believe it would work with other AWK implementations as well.

Installation and Usage

To install or uninstall just run make install or make uninstall as root; PREFIX defaults to /usr/local.

Usage is dead simple with no options:

mdtable2csv < table.md > spreadsheet.csv

Note that the input must only contain a table, bizarre and undesirable things will happen if you try to convert an arbitrary markdown file. This is quite useful when used in conjunction with a text-editor that lets you pipe the selected region into an external program.

Bugs and Limitations

Generated 2025-02-02 14:17:32 -0800 by RepoRat