blob: 05c727a8c298ca7d2728ba49dffed124e7e64dab (
plain)
1
2
3
4
5
6
7
8
9
10
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
|