Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Given that I prefer using ubiquitous, relatively small and simple utilities such as sed and tr, I use a simple custom utility I wrote myself using flex to make JSON output line-delimited so it's (a) human readable and (b) can be processed with traditional UNIX utilities such as sed and tr. Although it's quite popular jq, also originally written using flex (and yacc), is (c) not as ubiquitous as UNIX utilties such as sed and tr and (d) too large and complicated for me.


I have tried many alternatives, even including large Go binaries such as gron. None of them appealed to me. I use a comparatively simple C program that is 45.9 KiB when statically-compiled. Of the alternatives I have tried, this one was the most interesting:

https://news.ycombinator.com/item?id=31166956


have you tried gron?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: