mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-16 12:11:21 +08:00
chore: format markdown code. (#42)
* format: fix markdown * update: fix markdown * update: fix cron problems * update: delete .markdownlintignore * update * chore: add tab -> 4 space * chore: fix tab -> 2 in the .editorconfig
This commit is contained in:
10
docs/jq.md
10
docs/jq.md
@ -117,7 +117,7 @@ $ echo '[[1,2], "string", {"a":2}, null]' | jq '.[] | length'
|
||||
|
||||
输出结果
|
||||
|
||||
```bash
|
||||
```bash
|
||||
2
|
||||
6
|
||||
1
|
||||
@ -133,7 +133,7 @@ $ echo '{"abc": 1, "abcd": 2, "Foo": 3}' | jq 'keys'
|
||||
|
||||
输出结果
|
||||
|
||||
```bash
|
||||
```bash
|
||||
[
|
||||
"Foo",
|
||||
"abc",
|
||||
@ -164,7 +164,7 @@ $ echo '[{"name":"JSON", "good":true}, {"name":"XML", "good":false}]' | jq '.[]
|
||||
|
||||
输出结果
|
||||
|
||||
```bash
|
||||
```bash
|
||||
"JSON"
|
||||
"XML"
|
||||
```
|
||||
@ -178,7 +178,7 @@ $ echo '[1,5,3,0,7]' | jq 'map(select(. >= 2))'
|
||||
|
||||
输出结果
|
||||
|
||||
```bash
|
||||
```bash
|
||||
[
|
||||
5,
|
||||
3,
|
||||
@ -233,4 +233,4 @@ $ echo '42' | jq '"The input was \(.), which is one less than \(.+1)"'
|
||||
----
|
||||
|
||||
- [jq 官网](https://stedolan.github.io/jq/) _(stedolan.github.io)_
|
||||
- [jq 命令使用](https://jaywcjlove.github.io/linux-command/c/jq.html) _(jaywcjlove.github.io)_
|
||||
- [jq 命令使用](https://jaywcjlove.github.io/linux-command/c/jq.html) _(jaywcjlove.github.io)_
|
||||
|
Reference in New Issue
Block a user