2025-08-21 22:43:09 +10:00

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("."+.)|.[]'