summaryrefslogtreecommitdiff
path: root/Examples of proper JQ usage.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2025-04-15 19:44:48 +0200
committerJasper Ras <jras@hostnet.nl>2025-04-15 19:44:48 +0200
commitc8c774ad7c0d98def2e83647d4f635ee275b66de (patch)
tree99e16d1cb376d00bcf449f140fb8845463feee7c /Examples of proper JQ usage.md
parenteae6b57f17f5065a2bd3f130668043693f579cb4 (diff)
vault backup: 2025-04-15 19:44:48
Diffstat (limited to 'Examples of proper JQ usage.md')
-rw-r--r--Examples of proper JQ usage.md11
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