From c0791eee85c1fce9661b3a443bbed57e6fc17eac Mon Sep 17 00:00:00 2001 From: Ponrar Date: Sun, 9 Jul 2023 03:23:57 -0700 Subject: [PATCH] Add script to process all the files --- to_notecards.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 to_notecards.sh diff --git a/to_notecards.sh b/to_notecards.sh new file mode 100755 index 0000000..561ac26 --- /dev/null +++ b/to_notecards.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +files=( + "box_1.csv" + "box_2.csv" + "box_3.csv" + "box_4.csv" + "box_5.csv" + "box_6.csv" +) + +OUTPUT_DIR=dist + +# Ensure the output directory exists +mkdir -p $OUTPUT_DIR + +# Pipe and redirect python output to files +for file in ${files[@]}; do + ./process "$file" > "$OUTPUT_DIR/${file%.txt}.note" +done