added first 1033 readings index

This commit is contained in:
Alexander Bocken 2021-01-27 22:24:33 +01:00
parent ad72860f6e
commit 080a9d2733
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 1046 additions and 6 deletions

View File

@ -1,8 +1,14 @@
#!/bin/bash
for n in {1..2000}; do
printf "index of reading no. L-%s?" "$n"
#!/bin/zsh
printf "start at reading no. L-"
read -r start_no
for ((n=$start_no;n<=4000;n++)); do
printf "index of reading no. L-%s:" "$n"
read -r index
line="$(grep -P "^$index\t" lesungen)"
printf '%s\t%s\n' "$line" "$n" | tee -ai test
if [ "$index" -gt 2200 ]; then
echo "Kanji from third book. Just adding index and reading index for now"
printf '%s\t\t%s\n' "$index" "$n" | tee -ai readings_index
else
line="$(grep -P "^$index\t" lesungen)"
printf '%s\t%s\n' "$line" "$n" | tee -ai readings_index
fi
done

File diff suppressed because it is too large Load Diff