Joan Josep Ordinas Rosa
Joan Josep Ordinas Rosa
I wrote my own `jq` wrapper supporting YAML input and output. To use it clone the repository [jqt](https://github.com/fadado/jqt) and run `make install`. The `yq` script uses _Bash_ and _Python_ with...
On Fri, 10 May 2019, 09:23 Jakob Voß, wrote: > For YAML output it would be enough to to implement a jq module (aka jq > function library) that defines...
I don't like to put the full output in memory, but in this case the code can be clarified a bit. Subtle changes, not tested: ```sh TJQ=$(jq '.myProp = "newValue"'...
I reject to add `-i` to JQ. Is a bad idea. This is a very old theme, solved by Pike and Kernigan since 1984, in section 5.5 (_Replacing a file:...
On Mon, 25 Mar 2019 at 19:19, Nico Williams wrote: > @fadado I think the co-expression stuff will > be handy for JBOL! In some ways it's very Icon-like (the...
My exercise: to shuffle an array, classical solution. Given the code at the end you can shuffle an array using: ``` [range(10)] | shuffle ``` That's all, folks! I'm no...
This is very tricky, and my example uses a highly customized syntax, but I hope the idea should be clear. I use twice `defeval`, the second time escaped, and this...
> Although this _is_ a fun topic to discuss, before diving into details and syntax and whatnot I would like to clarify one thing: **Why?** > What existing problems does...
I prefer `(./"")[]` to `explode[]|[.]|implode` but I've not profiled the code.
> Honestly, this code does not look pretty to me. There has got to be a better way to write this... Yes: mimic the EBNF in : ``` # From:...