Various data updates

This commit is contained in:
2024-07-12 23:35:14 +09:00
parent 4ad609c759
commit e783b3f6b1
18 changed files with 201 additions and 1441 deletions

View File

@@ -31,20 +31,20 @@ if [ ! -d "${folder}" ]; then
exit;
fi;
for i in ${files[*]}; do
file=$(echo $i | sed -e "s/_/ /g")"."${current_date}".txt";
output=$(echo $i | sed -e "s/_/ /g")".pgn";
for i in "${files[@]}"; do
file=${i//_/ }".${current_date}.txt";
output=${i//_/ }".pgn";
if [ -f "${file}" ]; then
echo "OK: $file";
rm -f "${output}";
for pgn in $(cat "${file}"); do
while read -r pgn; do
if [ -f "${folder}${pgn}" ]; then
cat "${folder}${pgn}" >> "${output}";
echo -n "."
else
echo "[!!] Missing ${folder}${pgn}";
fi;
done;
done <"${file}";
echo "[DONE]";
fi;
done;