diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2025-04-26 13:14:25 +0200 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2025-04-26 13:14:25 +0200 |
commit | 89688082f4c85cbfcf045e1f85dac5c69285c23e (patch) | |
tree | 709be9a6f0c9a802e0487e92e81f4281f4ec345b /Examples of proper JQ usage.md | |
parent | f0a7d563a385663513f24aecad92219ecfc83bd8 (diff) | |
parent | 468e33e7926897756acfe0d483633fb36949ebc5 (diff) |
vault backup: 2025-04-26 13:14:25
Diffstat (limited to 'Examples of proper JQ usage.md')
-rw-r--r-- | Examples of proper JQ usage.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Examples of proper JQ usage.md b/Examples of proper JQ usage.md index b63ee4e..2b68d01 100644 --- a/Examples of proper JQ usage.md +++ b/Examples of proper JQ usage.md @@ -1,6 +1,5 @@ --- tags: - - linux - jq - howto --- @@ -8,4 +7,6 @@ Double escapes are important! ``` jq -r '.fixed_ips[] | select(.ip_address | test("\\.")) | .ip_address' -```
\ No newline at end of file +``` + +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]].
\ No newline at end of file |