blob: 2b68d01f69ca24eb50c53232a39b0a4c573a0af8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
---
tags:
- jq
- howto
---
Double escapes are important!
```
jq -r '.fixed_ips[] | select(.ip_address | test("\\.")) | .ip_address'
```
An example of constructing an array from stdin and filtering empty lines is found in [[Using JQ to construct an array and filtering empty strings]].
|