json2tsv: add -F and -R option - www.codemadness.org - www.codemadness.org saait content files (HTM) git clone git://git.codemadness.org/www.codemadness.org (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit e32d9d36d64d0850e8ff256f34c37d2287952cce (DIR) parent 7a41686d40f70b4027ab4d12f1f2207b722c0fb8 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 24 Sep 2021 14:34:29 +0200 json2tsv: add -F and -R option Diffstat: M config.cfg | 2 +- M output/atom.xml | 4 ++-- M output/atom_content.xml | 8 +++++--- M output/json2tsv.html | 4 +++- M output/json2tsv.md | 2 ++ M output/phlog/json2tsv | 4 +++- M output/rss_content.xml | 4 +++- M output/sitemap.xml | 2 +- M pages/json2tsv.cfg | 2 +- M pages/json2tsv.md | 2 ++ 10 files changed, 23 insertions(+), 11 deletions(-) --- (DIR) diff --git a/config.cfg b/config.cfg @@ -1,5 +1,5 @@ # last updated the site. -siteupdated = 2021-07-24 +siteupdated = 2021-09-24 sitetitle = Codemadness siteurl = https://www.codemadness.org (DIR) diff --git a/output/atom.xml b/output/atom.xml @@ -2,7 +2,7 @@ <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"> <title type="text">Codemadness</title> <subtitle type="text">blog with various projects and articles about computer-related things</subtitle> - <updated>2021-07-24T00:00:00Z</updated> + <updated>2021-09-24T00:00:00Z</updated> <link rel="alternate" type="text/html" href="https://www.codemadness.org" /> <id>https://www.codemadness.org/atom.xml</id> <link rel="self" type="application/atom+xml" href="https://www.codemadness.org/atom.xml" /> @@ -34,7 +34,7 @@ <title type="text">json2tsv: a JSON to TSV converter</title> <link rel="alternate" type="text/html" href="https://www.codemadness.org/json2tsv.html" /> <id>https://www.codemadness.org/json2tsv.html</id> - <updated>2020-07-20T00:00:00Z</updated> + <updated>2021-09-24T00:00:00Z</updated> <published>2019-10-13T00:00:00Z</published> <author> <name>hiltjo</name> (DIR) diff --git a/output/atom_content.xml b/output/atom_content.xml @@ -2,7 +2,7 @@ <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"> <title type="text">Codemadness</title> <subtitle type="text">blog with various projects and articles about computer-related things</subtitle> - <updated>2021-07-24T00:00:00Z</updated> + <updated>2021-09-24T00:00:00Z</updated> <link rel="alternate" type="text/html" href="https://www.codemadness.org" /> <id>https://www.codemadness.org/atom.xml</id> <link rel="self" type="application/atom+xml" href="https://www.codemadness.org/atom.xml" /> @@ -206,7 +206,7 @@ block empty or certain User-Agents.</p> <title type="text">json2tsv: a JSON to TSV converter</title> <link rel="alternate" type="text/html" href="https://www.codemadness.org/json2tsv.html" /> <id>https://www.codemadness.org/json2tsv.html</id> - <updated>2020-07-20T00:00:00Z</updated> + <updated>2021-09-24T00:00:00Z</updated> <published>2019-10-13T00:00:00Z</published> <author> <name>hiltjo</name> @@ -214,7 +214,7 @@ block empty or certain User-Agents.</p> </author> <summary type="text">json2tsv: a JSON to TAB-Separated Value converter</summary> <content type="html"><![CDATA[<h1>json2tsv: a JSON to TSV converter</h1> - <p><strong>Last modification on </strong> <time>2020-07-20</time></p> + <p><strong>Last modification on </strong> <time>2021-09-24</time></p> <p>json2tsv reads JSON data from stdin. It outputs each JSON type to a TAB-Separated Value format per line.</p> <h2>TAB-Separated Value format</h2> @@ -246,6 +246,8 @@ removed.</p> default (but it has a -r option if needed).</li> <li>On OpenBSD it supports <a href="https://man.openbsd.org/pledge">pledge(2)</a> for syscall restriction: pledge("stdio", NULL).</li> +<li>Supports setting a different field separator and record separator with the -F +and -R option.</li> </ul> <h2>Cons</h2> <ul> (DIR) diff --git a/output/json2tsv.html b/output/json2tsv.html @@ -41,7 +41,7 @@ <header> <h1>json2tsv: a JSON to TSV converter</h1> <p> - <strong>Last modification on </strong> <time>2020-07-20</time> + <strong>Last modification on </strong> <time>2021-09-24</time> </p> </header> @@ -76,6 +76,8 @@ removed.</p> default (but it has a -r option if needed).</li> <li>On OpenBSD it supports <a href="https://man.openbsd.org/pledge">pledge(2)</a> for syscall restriction: pledge("stdio", NULL).</li> +<li>Supports setting a different field separator and record separator with the -F +and -R option.</li> </ul> <h2>Cons</h2> <ul> (DIR) diff --git a/output/json2tsv.md b/output/json2tsv.md @@ -36,6 +36,8 @@ Filtering on the first field "nodename" is easy using awk for example. default (but it has a -r option if needed). * On OpenBSD it supports [pledge(2)](https://man.openbsd.org/pledge) for syscall restriction: pledge("stdio", NULL). +* Supports setting a different field separator and record separator with the -F + and -R option. ## Cons (DIR) diff --git a/output/phlog/json2tsv b/output/phlog/json2tsv @@ -3,7 +3,7 @@ i codemadness.org 70 i codemadness.org 70 i# json2tsv: a JSON to TSV converter codemadness.org 70 i codemadness.org 70 -iLast modification on 2020-07-20 codemadness.org 70 +iLast modification on 2021-09-24 codemadness.org 70 i codemadness.org 70 ijson2tsv reads JSON data from stdin. It outputs each JSON type to a codemadness.org 70 iTAB-Separated Value format per line. codemadness.org 70 @@ -43,6 +43,8 @@ i* It does not output control-characters to the terminal for security reasons by i default (but it has a -r option if needed). codemadness.org 70 h* On OpenBSD it supports »pledge(2)« for syscall restriction: URL:https://man.openbsd.org/pledge codemadness.org 70 i pledge("stdio", NULL). codemadness.org 70 +i* Supports setting a different field separator and record separator with the -F codemadness.org 70 +i and -R option. codemadness.org 70 i codemadness.org 70 i codemadness.org 70 i## Cons codemadness.org 70 (DIR) diff --git a/output/rss_content.xml b/output/rss_content.xml @@ -199,7 +199,7 @@ block empty or certain User-Agents.</p> <dc:date>2019-10-13T00:00:00Z</dc:date> <author>hiltjo</author> <description><![CDATA[<h1>json2tsv: a JSON to TSV converter</h1> - <p><strong>Last modification on </strong> <time>2020-07-20</time></p> + <p><strong>Last modification on </strong> <time>2021-09-24</time></p> <p>json2tsv reads JSON data from stdin. It outputs each JSON type to a TAB-Separated Value format per line.</p> <h2>TAB-Separated Value format</h2> @@ -231,6 +231,8 @@ removed.</p> default (but it has a -r option if needed).</li> <li>On OpenBSD it supports <a href="https://man.openbsd.org/pledge">pledge(2)</a> for syscall restriction: pledge("stdio", NULL).</li> +<li>Supports setting a different field separator and record separator with the -F +and -R option.</li> </ul> <h2>Cons</h2> <ul> (DIR) diff --git a/output/sitemap.xml b/output/sitemap.xml @@ -10,7 +10,7 @@ </url> <url> <loc>https://www.codemadness.org/json2tsv.html</loc> - <lastmod>2020-07-20</lastmod> + <lastmod>2021-09-24</lastmod> </url> <url> <loc>https://www.codemadness.org/openbsd-autoinstall.html</loc> (DIR) diff --git a/pages/json2tsv.cfg b/pages/json2tsv.cfg @@ -3,4 +3,4 @@ id = json2tsv description = json2tsv: a JSON to TAB-Separated Value converter keywords = json2tsv, JSON, tsv, TAB-Separated Value Format created = 2019-10-13 -updated = 2020-07-20 +updated = 2021-09-24 (DIR) diff --git a/pages/json2tsv.md b/pages/json2tsv.md @@ -36,6 +36,8 @@ Filtering on the first field "nodename" is easy using awk for example. default (but it has a -r option if needed). * On OpenBSD it supports [pledge(2)](https://man.openbsd.org/pledge) for syscall restriction: pledge("stdio", NULL). +* Supports setting a different field separator and record separator with the -F + and -R option. ## Cons