From 91af268aeb40ba7adc69a6e1acf89a94466ecb5e Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 14:28:33 +0200 Subject: Preserve JSONL record boundaries across input files --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index f0d487d..872c0eb 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ usage: aip-filter [-p|--print] [--max-record-bytes N] [--] [file...] * `--print` prints the parsed expression instead of evaluating it. * If no files are given, reads from stdin. -* Input is newline-delimited JSON, with one value per line. Matching lines are preserved. +* Input is newline-delimited JSON, with one value per line. Matching lines are preserved, with a newline inserted between records when a preceding input file has no trailing newline. A final unterminated record is otherwise left unchanged. * An empty filter copies the selected input unchanged; `--print` with an empty filter prints nothing. * Invalid JSON lines are reported and skipped. Any invalid JSON or input/output error causes a nonzero exit status. * Records are limited to 8 MiB by default, including the newline. `--max-record-bytes N` sets a positive byte limit. Oversized records are reported and skipped without buffering the rest of the line; later records are still processed and the exit status indicates failure. The limit does not apply to an empty filter, which copies bytes directly. -- cgit v1.3.1