Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,6 +1,11 @@
# index/1 returns the index or null,
# so the jq test "if index(_) then ...." can be used
# without any type conversion.
# In jq 1.4 or later:
jq -n '"abcdabcd" | indices("bc")'
[
1,
5
]
"abcd" | index( "bc")
#=> 1
# In jq 1.5, the regex function match/1 can also be used:
$ jq -n '"abcdabcd" | match("bc"; "g") | .offset'
1
5