Back to Code Snippets
Query the Output of Another ProcessBash
Editor's note: if you're executing command-line interfaces that output JSON, CSV or other common formats, DuckDB enables you to do ad hoc queries on the results using SQL.
Execute this Bash
# Only using JSON as an example format, not required. cat some-file.json | duckdb -s "SELECT * FROM read_json_auto('/dev/stdin')";
Copy code
Mark Roddy
Expand
Share link