From 9bd8cdf2ecc2b60f873b393122b19985cbc4587c Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Mon, 2 Jun 2025 12:15:47 +0200 Subject: vault backup: 2025-06-02 12:15:47 --- Examples of proper JQ usage.md | 12 ------------ 1 file changed, 12 deletions(-) delete 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 deleted file mode 100644 index 2b68d01..0000000 --- a/Examples of proper JQ usage.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -tags: - - jq - - howto ---- -Double escapes are important! - -``` -jq -r '.fixed_ips[] | select(.ip_address | test("\\.")) | .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]]. \ No newline at end of file -- cgit v1.2.3