misp-galaxy/jq_all_the_things.sh

14 lines
178 B
Bash
Raw Normal View History

2017-02-13 17:32:53 +00:00
#!/bin/bash
set -e
set -x
# Seeds sponge, from moreutils
for dir in galaxies/*.json
do
cat ${dir} | jq . | sponge ${dir}
done
cat schema.json | jq . | sponge schema.json