diff options
Diffstat (limited to 'create_notes.sh')
-rwxr-xr-x | create_notes.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/create_notes.sh b/create_notes.sh new file mode 100755 index 0000000..05c727a --- /dev/null +++ b/create_notes.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +mkdir -p notes + +cat graphdata.json | +jq -c '.data.nodes[]' | +while read -r nodes; do + id=$(echo "${nodes}" | jq -r '.id') + file=$(echo "${nodes}" | jq -r '.file') + cp -p "${file}" "notes/${id}" +done
\ No newline at end of file |