aboutsummaryrefslogtreecommitdiff
path: root/create_notes.sh
blob: 8e510523ffbef866aa869645d56f815f4d3e2b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

orgPath=$1

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 "${orgPath}/${file}" "notes/${id}"
done