jtbl:tldr:18569
This command is a combination of two commands using the pipe operator "|" to chain them together.
-
cat ${file-json}
: This command uses thecat
command to read the contents of a file specified by the variable${file-json}
. The${file-json}
is a placeholder for the actual file name or path. It is expanded to the file name or path before executing the command. Thecat
command then outputs the contents of the file to the standard output. -
jtbl
: This command is executed on the output of the previouscat
command. It is a command-line utility used to format JSON data in a tabular form. It takes the JSON input from the standard input and converts it into a human-readable table format, which is then displayed on the terminal.
So overall, this command first reads the contents of a JSON file and then passes that data to the jtbl
command to format it as a table for easier readability.