diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2025-04-18 21:01:49 +0200 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2025-04-18 21:01:49 +0200 |
commit | a8a8e1f984f20c8008f3a5f57cd39b416eb73104 (patch) | |
tree | 2262794b52d82c5fd9cbc55b503b52fafbd3af8a /Examples of proper JQ usage.md | |
parent | 5fa69499917fab7a026c90c8321dbcc22734106a (diff) | |
parent | ab409a3701bf59dd73dc1e0324376bdac8b6d74f (diff) |
vault backup: 2025-04-18 21:01:49
Diffstat (limited to 'Examples of proper JQ usage.md')
-rw-r--r-- | Examples of proper JQ usage.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Examples of proper JQ usage.md b/Examples of proper JQ usage.md new file mode 100644 index 0000000..b63ee4e --- /dev/null +++ b/Examples of proper JQ usage.md @@ -0,0 +1,11 @@ +--- +tags: + - linux + - jq + - howto +--- +Double escapes are important! + +``` +jq -r '.fixed_ips[] | select(.ip_address | test("\\.")) | .ip_address' +```
\ No newline at end of file |