6 lines
70 B
Text
6 lines
70 B
Text
# In jq 1.4 or later:
|
|
jq -n '"abcdabcd" | indices("bc")'
|
|
[
|
|
1,
|
|
5
|
|
]
|