SMOLNET PORTAL home about changes

tsv2txt_table


A awk/bash script that formats a TSV file into a plaintext table.

Download

tsv2txt_table


Example

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 |
	+---------------------------------------------+
Response: 20 (Success), text/gemini
Original URLgemini://tilde.club/~filip/tech/script/tsv2txt_table/tsv2...
Status Code20 (Success)
Content-Typetext/gemini; charset=utf-8; lang=en