diff --git a/data/README-names.md b/data/README-names.md index 1fad6d2..e961a51 100644 --- a/data/README-names.md +++ b/data/README-names.md @@ -44,3 +44,17 @@ Array.from(document.getElementsByClassName("listofponies")[0] }); console.log(JSON.stringify(names)); ``` + +Combine all of the files like this: + +```console +$ jq -n '[inputs] | add' \ + names-blades.json \ + names-ponies-earth.json \ + names-ponies-pegasus.json \ + names-ponies-unicorn.json\ + | jq -r '.[]' \ + | sort \ + | uniq \ + | jq -nR '[inputs | select(length>0)]' > names.json +```