From c8c774ad7c0d98def2e83647d4f635ee275b66de Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Tue, 15 Apr 2025 19:44:48 +0200 Subject: vault backup: 2025-04-15 19:44:48 --- Examples of proper JQ usage.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Examples of proper JQ usage.md (limited to 'Examples of proper JQ usage.md') 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 -- cgit v1.2.3