keeps important secton for formatting in html
This commit is contained in:
parent
9062f1ae8d
commit
f8750a1a86
2
script/gethtml
Normal file → Executable file
2
script/gethtml
Normal file → Executable file
@ -5,7 +5,7 @@ cat avl.csv | while read line || [[ -n $line ]];
|
||||
do
|
||||
no="$(echo "$line" | awk 'BEGIN{FS = "\t" } {print $1}' )"
|
||||
word="$(echo "$line" | awk 'BEGIN{FS = "\t" } {print $2}' )"
|
||||
meaning_clean="$(curl --no-progress-meter http://www.ozdic.com/collocation-dictionary/"$word" | sed '6,35d; 37,53d' | tac | sed '4,30d' | tac | tr '\n' ' ' | tr '\t' ' ')"
|
||||
meaning_clean="$(curl --no-progress-meter http://www.ozdic.com/collocation-dictionary/"$word" | sed '6,35d; 38,48d' | tac | sed '6,30d' | tac | tr '\n' ' ' | tr '\t' ' ')"
|
||||
printf "card:%s\t(%s)\n" "$no" "$word"
|
||||
printf "%s;\"%s\";\"%s\"\n" "$no" "$word" "$meaning_clean" >> cards.csv
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user