learnbyexample@programming.dev to Linux@lemmy.mlEnglish · 3 days agoMastering jqcodefaster.substack.comexternal-linkmessage-square12fedilinkarrow-up136arrow-down14
arrow-up132arrow-down1external-linkMastering jqcodefaster.substack.comlearnbyexample@programming.dev to Linux@lemmy.mlEnglish · 3 days agomessage-square12fedilink
minus-squareArseAssassin@sopuli.xyzlinkfedilinkarrow-up8·2 days agoI don’t know if we should call someone a master of jq if they do echo ‘{“k1”: [{“k2”: [9]}]}’ | jq ‘.k1 | .[0] | .k2 | .[0]’ Instead of just echo ‘{“k1”: [{“k2”: [9]}]}’ | jq ‘.k1[0].k2[0]’
minus-squareMonkderVierte@lemmy.ziplinkfedilinkarrow-up3·edit-215 hours agoBoth are bad. Make it readable. And if you often resort to jq, better use python or at least something like nushell.
I don’t know if we should call someone a master of jq if they do
Instead of just
Both are bad. Make it readable.
And if you often resort to jq, better use python or at least something like nushell.