updated footnote_scripts to final version
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
#Adds the footnotes in the right location in the larger tsv file
|
||||
while read line; do
|
||||
start_of_line="$(echo "$line" | awk 'BEGIN{FS="\t"}{printf("%s\t%s\t%d\t%d\t%d\t\n",$1,$2,$3,$4,$5)}')"
|
||||
if grep -q "$start_of_line" notes_formatted; then
|
||||
count=$( grep "$start_of_line" notes_formatted | wc -l )
|
||||
if grep -q "$start_of_line" formatted_all_footnotes; then
|
||||
count=$( grep "$start_of_line" formatted_all_footnotes | wc -l )
|
||||
printf '%s' "$line"
|
||||
for i in {1..$count}; do
|
||||
printf '*'
|
||||
done
|
||||
printf '\n'
|
||||
grep "$start_of_line" notes_formatted
|
||||
grep "$start_of_line" formatted_all_footnotes
|
||||
else
|
||||
echo "$line"
|
||||
fi
|
||||
done<Genesis_from_tsv
|
||||
done<bibel.tsv
|
||||
|
Reference in New Issue
Block a user