mirror of
https://github.com/wader/fq.git
synced 2024-12-23 05:13:30 +03:00
4 lines
136 B
Markdown
4 lines
136 B
Markdown
|
### Array with all level 1 and 2 headers
|
||
|
```sh
|
||
|
$ fq -d markdown '[.. | select(.type=="heading" and .level<=2)?.children[0]]' file.md
|
||
|
```
|