From f8750a1a865959a9c840864184d818afff88226e Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Fri, 18 Sep 2020 17:34:59 +0200 Subject: [PATCH] keeps important secton for formatting in html --- script/gethtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 script/gethtml diff --git a/script/gethtml b/script/gethtml old mode 100644 new mode 100755 index 38c4d51..0f60f13 --- a/script/gethtml +++ b/script/gethtml @@ -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