Hacker News new | ask | show | jobs
by okasaki 1404 days ago
Why use a special syntax that's hard to remember when you can just use Python?

I wrote a jq-like that accepts Python syntax called pq: https://github.com/dvolk/pq

So you can write stuff like:

    $ echo '{ "US": 3, "China": 12, "UK": 1 }' | pq -c "sum(data.values())"
    16
1 comments

i deny the premise obviously