TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

First release of jq in 5 years

114 点作者 drewda将近 2 年前

6 条评论

ericbarrett将近 2 年前
Great to see. jq is nearly as ubiquitous as bash these days.<p>I’m excited about pick()! Could have used this so many times:<p>&gt; Adds new builtin pick(stream) to emit a projection of the input object or array. @pkoppstein #2656<p><pre><code> $ jq -n &#x27;{&quot;a&quot;: 1, &quot;b&quot;: {&quot;c&quot;: 2, &quot;d&quot;: 3}, &quot;e&quot;: 4} | pick(.a, .b.c, .x)&#x27; { &quot;a&quot;: 1, &quot;b&quot;: { &quot;c&quot;: 2 }, &quot;x&quot;: null }</code></pre>
评论 #36952664 未加载
评论 #36953054 未加载
评论 #36952456 未加载
shortrounddev2将近 2 年前
Is it not an indictment of bash that, in order to make shells useful to modern data formats, we have to create tools with <i>their own</i> scripting languages and pipes? Since bash can&#x27;t operate on structured data like jq does, jq has to have pipes <i>inside</i> jq expressions.
评论 #36966905 未加载
评论 #36959415 未加载
评论 #36960426 未加载
评论 #36960335 未加载
评论 #36960747 未加载
cryptonector将近 2 年前
Hey, this is a release candidate. It got made mainly to test the new GitHub Actions release workflow, though it&#x27;s just as well because we&#x27;re very close to doing a 1.7. Probably a week away.
jpeeler将近 2 年前
Some competition for <a href="https:&#x2F;&#x2F;github.com&#x2F;itchyny&#x2F;gojq">https:&#x2F;&#x2F;github.com&#x2F;itchyny&#x2F;gojq</a>. I had read somewhere that it was faster than jq - no idea if that&#x27;s still the case.
评论 #36963096 未加载
pabs3将近 2 年前
Great to see the NUL separator work I had a hand in has reached a release. Wish it got to use -0 for easy typing, but with tab completion it shouldn&#x27;t be too bad.
wwader将近 2 年前
Note that this is a release candidate so please report any issues!