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`