skip to Main Content

jq streaming eats first element, why? – Ubuntu

When using jq in streaming mode (because 100 GB file) it eats the first element. How can I avoid that? echo [{"id":482,"a":"2","b":1},{"id":483,"a":"3","b":2}] | jq -c --stream "fromstream(1|truncate_stream(inputs))" Output is {"a":"2","b":1} {"id":483,"a":"3","b":2} The first element (id) is missing from the first…

VIEW QUESTION
Back To Top
Search