Live data from Hacker News

Viewing profile — wwader

wwader

HN member
Joined
Thu, Dec 23, 2021, 12:22 PM UTC
HN karma
298
Public activity
104 items

About wwader

No profile information was provided.

Recent public activity

  1. comment
    Comment #47716625

    Assume input is an array you can do it several ways depending on what you want: # output each value in the array separately .[] # output each value but transform it in some way .[]…

  2. comment
    Comment #44795982

    Same! and jq's regexp functions are quite powerful for transforming text into something more structured: $ echo -e "10:20: hello\n20:39: world" | jq -cR 'capture("^(? .*): (? .*)$"…

  3. comment
    Comment #44422157

    Very nice! thanks for building this

  4. comment
    Comment #43514140

    The jaq author is working on a formal specification of jq https://github.com/01mf02/jq-lang-spec . I think it has also help that there are several implementations of jq now like, g…

  5. comment
    Comment #42972278

    The sqlite source includes a CLI tool called showdb that is quite nice for poking around in database files

  6. comment
    Comment #42440092

    Note on (b): As i understand it JSONPath by design is limited to only be able to select things from the input, so can't build a new object, array etc.

  7. story
  8. comment
    Comment #42058131

    open -a is nice, i use it with alias, ex: alias qt='open -a "quicktime player"' alias vlc='open -a "vlc"'

  9. comment
    Comment #41814599

    Yeap the syntax and semantics is quite different to other languages and it really took me a long time and deep understanding to really appreciate how expressive and damn well desig…

  10. comment
    Comment #41796963

    As a heavy jq user and now a days also maintainer i say welcome! happy to help if you run into some problem

  11. comment
    Comment #41689751

    Yeap love things like that, ex https://www.imdb.com/title/tt1787791/ and the mystery show podcast. Let me know if you know any!

  12. comment
    Comment #41667182

    Reminds me of the documentary Kim's video https://www.imdb.com/title/tt24132144/ recommended!

  13. comment
    Comment #41566746

    I think the alpine package format do use this in combination with tar being similar https://wiki.alpinelinux.org/wiki/Apk_spec

  14. comment
    Comment #41518772

    Nice haven't seen. Shameless plug fq support elf https://github.com/wader/fq and will have a look if i could lend some ideas from llvm-readelf

  15. comment
    Comment #41419203

    I once dumped a cassandra cluster to json (10ish gb i if remember correctly) and used jq to do queries

  16. comment
    Comment #41300371

    Comparison of last example from https://axel.leroy.sh/quick-refs#dasel desel: .data.all().filterOr(moreThan(.quantity,3),equal(.quantity,3)).mapOf(key,key,quantity,quantity) yq: .d…

  17. comment
    Comment #41300278

    Hey! thanks for the jqjq shoutout!

  18. comment
    Comment #40898922

    > Oh oh, jq has bugs..., I hope you reported them. I wondered more than once whether I could trust the results of my jq invocations. Yes report, and i'm one of the jq maintainers n…

  19. comment
    Comment #40897169

    No sure what your talking about, i get happy every time i get to use jq! :)

  20. comment
    Comment #40896185

    Yes it is! see the example in the readme how to run jqjq with jqjq. Sadly you will probably need a lot of memory, it used to work on my laptop but not anymore after some recent cha…

  21. comment
    Comment #40896167

    "thanks" :)

  22. comment
    Comment #40896160

    Hey! quite accurate, it was a mix of i just wanted to try to see how hard it would be and wanted to know more about jq. I guess it has limited practical use other than as a learnin…

  23. comment
    Comment #40893735

    Hey! jqjq author here. Some time :) but surpassingly not that much, after getting over some major hurdles like how to mix recursive decent parsing and infix operators (precedence c…

  24. comment
    Comment #40873430

    jq has quite a few more ways to input things more than from stdin and files. Some examples: $ abc=123 jq -cn '$ENV | {abc, othername: .abc}' {"abc":"123","othername":"123"} $ jq -c…

  25. comment
    Comment #40844811

    It do involve some quite complicated plumbing :) i hope i've made at least some more ppl interested in jq as a langauge and related tools with fq, jqjq, jq-lsp and by helping maint…