blob: b8f751d3d1c5de0ee4c8815911ab6d2b84aadb48 (
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("([0-9]+\\.)+")) | .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]].
|