Add script to process all the files
This commit is contained in:
parent
2800d6091e
commit
c0791eee85
20
to_notecards.sh
Executable file
20
to_notecards.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user