$ cat some-vendor-nonsense.txt
product id: 5
price: 3.14
product id: 6
price: 6.66
$ sed "s/^/ /; s/^ product/- product/" < some-vendor-nonsense.txt \
| gojq --yaml-input .Hmm weird list of changes for https://github.com/wader/gojq/compare/fq...itchyny:gojq:main but i guess it is because i haven't kept my main branch in sync. The fq branch should be based on latest gojq/main as of now. I usually try to rebase as quick as possible.
Let me know if you have any other questions or want to help out! maybe email etc as i usually don't check HN comments replies that often :)
"<option value=\"/examples/\(.)/\">\(.)</option>"I also want to draw the reader's attention to the magic of |@uri <https://github.com/jqlang/jq/blob/jq-1.7/docs/content/manual...> for a bunch of cases, but doubly so in TFA's case where they're plugging strings into a URI context. Simple string concat often works great for "hello world", but the world is not always just hello, so one quick use of the filter and jq's got your back
echo "the world's scary" | jq -Rr '"<option value=\"/examples/\(.|@uri)\">\(.)</value>"'There is still a quite good bootstrap customizer at bootstrap.build btw ;)