misp-galaxy/jq_all_the_things.sh
2017-02-13 18:52:54 +01:00

13 lines
178 B
Bash
Executable file

#!/bin/bash
set -e
set -x
# Seeds sponge, from moreutils
for dir in clusters/*.json
do
cat ${dir} | jq . | sponge ${dir}
done
cat schema.json | jq . | sponge schema.json