Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 753 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 753 Bytes

jsonfilter

filters a big file with JSON lines by a key/value and writes to another file

usage:

Usage: jsonfilter [OPTIONS] --input <INPUT> --output <OUTPUT> --key <KEY> --filter <FILTER>

Options:
  -a, --archive <ARCHIVE>  Optionally provide a zst archive to unpack. If archive is provided, it is extracted to the input path [default: ]
  -i, --input <INPUT>      Input file - must be newline-separated json
  -o, --output <OUTPUT>    Output file - newline-separated json will be written to this path
  -k, --key <KEY>          JSON key to filter on
  -f, --filter <FILTER>    JSON value to filter on
  -q, --quiet              If set, do not log progress
  -h, --help               Print help
  -V, --version            Print version