From 2e32a4e4bfc595c57675c10525fe89b9c50a9809 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Mon, 17 May 2021 08:08:53 -0400 Subject: [PATCH] update names readme for ponies Signed-off-by: Christine Dodrill --- data/README-names.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 +```