💾 Archived View for tilde.club › ~filip › tech › script › tsv2txt_table › tsv2txt_table.gmi captured on 2024-08-31 at 12:23:21. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
A awk/bash script that formats a TSV file into a plaintext table.
TSV file `test.tsv`:
here^Iare^Isome$ words^I^Iand^Inumbers$ ^Ilike^I1^Iand^I2^Iand 3$
Output of `./tsv2txt_table test.tsv`:
+---------------------------------------------+ | here | are | some | | | | | | words | | and | numbers | | | | | | like | 1 | and | 2 | and | 3 | +---------------------------------------------+