Skip to content

[pull] master from bitfield:master#31

Merged
pull[bot] merged 2 commits intodandycheung:masterfrom
bitfield:master
Mar 22, 2025
Merged

[pull] master from bitfield:master#31
pull[bot] merged 2 commits intodandycheung:masterfrom
bitfield:master

Conversation

@pull
Copy link

@pull pull bot commented Mar 22, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

tho and others added 2 commits March 22, 2025 11:59
* Change JQ to process newline-delimited JSON

https://jsonlines.org

Example use case:

Analyzes logs to count and display frequency of different log levels
from newline-delimited JSON input.

```
cat log.json | ./goscript.sh -c 'script.Stdin().JQ(".level").Freq().Stdout()'
3 "INFO"
2 "WARN"
1 "ERROR"
```

* tweaks

* remove extra failure outputs

* add extra ignored test input

---------

Co-authored-by: John Arundel <john@bitfieldconsulting.com>
@pull pull bot added the ⤵️ pull label Mar 22, 2025
@pull pull bot merged commit 6006cd0 into dandycheung:master Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants