miller icon indicating copy to clipboard operation
miller copied to clipboard

Allow to ignore invalid lines

Open motine opened this issue 2 years ago • 0 comments

I am trying to parse a log file with Miller. The logs are (mostly) in JSONL, but sometimes there are non-JSON lines in between. I would love to have an option that allows to read the JSONL file but ignoring these bad lines.

Example:

mlr --ijsonl --skip-bad-lines filter '$path =~ "abc"' some.log

motine avatar May 22 '23 14:05 motine