From 82de400ab8f0d499d161e4c1f3a9a900832bb4b2 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 29 Jun 2021 22:50:39 -0700 Subject: [PATCH] jtbl: add page (#6181) --- pages/common/jtbl.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/jtbl.md diff --git a/pages/common/jtbl.md b/pages/common/jtbl.md new file mode 100644 index 0000000000..ea6b29e6f2 --- /dev/null +++ b/pages/common/jtbl.md @@ -0,0 +1,20 @@ +# jtbl + +> Utility to print JSON and JSON Lines data as a table in the terminal. +> More information: . + +- Print a table from JSON or JSON Lines input: + +`cat {{file.json}} | jtbl` + +- Print a table and specify the column width for wrapping: + +`cat {{file.json}} | jtbl --cols={{width}}` + +- Print a table and truncate rows instead of wrapping: + +`cat {{file.json}} | jtbl -t` + +- Print a table and don't wrap or truncate rows: + +`cat {{file.json}} | jtbl -n`