AbGuthrie / goquery

Provide a shell like interface by utilizing osquery's distributed API
MIT License
80 stars 10 forks source link

Support piping query results to files #78

Open AbGuthrie opened 5 years ago

AbGuthrie commented 5 years ago

Add a syntax to allow piping the result of query to a file, saving on disk. For example: .query select * from processes |> ./queries/out.txt --json

This will allow the larger queries to potentially be easily parsed with external tools, and avoid printing a huge amount of data. This feature could support flags for the output print mode, for example --json and --csv