3 lines
136 B
Bash
Executable File
3 lines
136 B
Bash
Executable File
#!/bin/sh
|
|
|
|
jq -r '[path(..)|map(if type=="number" then "[]" else tostring end)|join(".")|split(".[]")|join("[]")]|unique|map("."+.)|.[]' |