aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorikoamu <ikoamu@gmail.com>2024-01-27 16:55:45 +0900
committerikoamu <ikoamu@gmail.com>2024-01-27 16:55:45 +0900
commit0246f6be98437e3aeea5dc345f26db9fdfd9c126 (patch)
tree3add55cd199ddd57ffc8892bccdd3410b41e90f8
parent38da70621912021a81a209999b0b8e988740e3ac (diff)
Refactor create_notes.sh script to copy files based on graphdata.json
-rwxr-xr-xcreate_notes.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/create_notes.sh b/create_notes.sh
index 652f620..d5a77ae 100755
--- a/create_notes.sh
+++ b/create_notes.sh
@@ -4,14 +4,19 @@ orgPath=$1
mkdir -p notes
-cat graphdata.json
+# cat graphdata.json
-ls -ls "${orgPath}"
+# ls -ls "${orgPath}"
cat graphdata.json |
jq -c '.data.nodes[]' |
while read -r nodes; do
id=$(echo "${nodes}" | jq -r '.id')
file=$(echo "${nodes}" | jq -r '.file')
+ echo "============================="
+ echo "id: ${id}"
+ echo "file: ${file}"
+ cat "${orgPath}/${file}"
+
cp -p "${orgPath}/${file}" "notes/${id}"
done \ No newline at end of file