All Projects → alingse → jq-manual-cn

alingse / jq-manual-cn

Licence: other
jq 中文手册

Projects that are alternatives of or similar to jq-manual-cn

cheatsheets
My Cheatsheet Repository
Stars: ✭ 193 (+589.29%)
Mutual labels:  jq
robot hacking manual
Robot Hacking Manual (RHM). From robotics to cybersecurity. Papers, notes and writeups from a journey into robot cybersecurity.
Stars: ✭ 169 (+503.57%)
Mutual labels:  manual
Manuals-and-Tutorials
Manuals about everything I work with
Stars: ✭ 15 (-46.43%)
Mutual labels:  manual
Clover-Crate
Clover Bootloader (with Quirks) and Clover Configurator explained. My attempt of creating a usable documentation for the popular boot manager.
Stars: ✭ 61 (+117.86%)
Mutual labels:  manual
sjq
Command-line JSON processor with Scala syntax
Stars: ✭ 54 (+92.86%)
Mutual labels:  jq
openwrt
OpenWrt Stable 1907 with lean's package
Stars: ✭ 55 (+96.43%)
Mutual labels:  zh-cn
gosquito
gosquito ("go" + "mosquito") is a pluggable tool for data gathering, data processing and data transmitting to various destinations.
Stars: ✭ 25 (-10.71%)
Mutual labels:  jq
UPBGE-Docs
UPBGE Manual
Stars: ✭ 12 (-57.14%)
Mutual labels:  manual
jfq
JSONata on the command line
Stars: ✭ 29 (+3.57%)
Mutual labels:  jq
portainer-stack-utils
CLI client for Portainer
Stars: ✭ 66 (+135.71%)
Mutual labels:  jq
api-test
🌿 A simple bash script to test JSON API from terminal in a structured and organized way.
Stars: ✭ 53 (+89.29%)
Mutual labels:  jq
jqmd
Write and document your jq/shell scripts with markdown
Stars: ✭ 24 (-14.29%)
Mutual labels:  jq
jq.cr
thin JSON::Any wrapper to emulate jq for crystal
Stars: ✭ 15 (-46.43%)
Mutual labels:  jq
ghrecipes
⛔ ARCHIVED ⛔ Provides some helper functions for using the GitHub V4 API
Stars: ✭ 28 (+0%)
Mutual labels:  jq
lab-manual
Lab manual for the Contextual Dynamics Laboratory at Dartmouth College
Stars: ✭ 16 (-42.86%)
Mutual labels:  manual
vscode-jq
jq LiveView Extension for VS Code
Stars: ✭ 15 (-46.43%)
Mutual labels:  jq
javaparser-visited
Code samples for the book "JavaParser: Visited" https://leanpub.com/javaparservisited
Stars: ✭ 80 (+185.71%)
Mutual labels:  manual
JBOL
JBOL is a collection of modules for the JQ language.
Stars: ✭ 56 (+100%)
Mutual labels:  jq
javascript-invat-eu-inveti-si-tu
Această colecție este pentru cei interesați de o resursă deschisă dedicată înțelegerii JavaScript.
Stars: ✭ 45 (+60.71%)
Mutual labels:  manual
vim-jqplay
Run jq interactively in Vim
Stars: ✭ 56 (+100%)
Mutual labels:  jq

jq 中文手册

jq 是一个命令行 JSON 文本处理器,性能高效、语法简洁有力、表达能力强,是一款文本处理利器。

项目地址 github.com/stedolan/jq

官网 stedolan.github.io/jq

原文档请往 https://stedolan.github.io/jq/manual/

版本列表

翻译目的

项目旨在给出 jq 的中文使用手册,推广 jq 在中文社区的使用(毕竟某度搜 jq 都是jquery)。

方便使用者对 jq 常用语法的查阅

Why jq ?

jq 长于处理 JSON 格式数据,可以进行选择、转换、合并以及一些复杂操作。

jq 可以在命令行下进行不断调试,而不必写程序文件去处理,同时代码即命令,更加的直白

简单示例

示例 A

$echo '{"s":2,"t":3,"w":5}'|jq
{
  "s": 2,
  "t": 3,
  "w": 5
}
$echo '{"s":2,"t":3,"w":5}'|jq '.t'
3

M 示例 B

功能:提取一行 JSON 数据中 p 值大于 0.2 的 id

echo '{"code":200,"data":{"items":[{"id":100,"p":0.3},{"id":101,"p":0.5},{"id":102,"p":0.7}]}}' > raw.json

cat raw.json|jq -r -c 'select(.code==200)|.data.items|map(select(.p>0.2))|.[]|{id}'

窗口:

如果窗口没有显示,点击 http://showterm.io/66cd2262111dbe29437ac 访问

版权说明

see ./copyright

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].