File: proof-lexicon.sh

package info (click to toggle)
apertium-tur 0.2.0~r83161-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,860 kB
  • sloc: python: 476; sh: 119; makefile: 107; xml: 54
file content (12 lines) | stat: -rw-r--r-- 673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
LEXC=$1
for line in `cat $LEXC | grep 'ADVINFL ; .*"' | sed 's/ /_/g' | sed 's/^! *//g'`; do 
	word=`echo $line | cut -f1 -d':' | sed 's/^! *//g' | iconv -f utf-8 -t iso-8859-9`;
	#wget -q -O - --referer "http://tdkterim.gov.tr/bts/arama/index.php" "http://tdkterim.gov.tr/bts/arama/?kategori=verilst&kelime=$word&ayn=tam"  | grep "$word" | grep -e "<i> a. bl.</i>" -e "<i> a. " -e "<i> a.</i>" > /dev/null
	wget -q -O - --referer "http://tdkterim.gov.tr/bts/arama/index.php" "http://tdkterim.gov.tr/bts/arama/?kategori=verilst&kelime=$word&ayn=tam"  | grep "$word" | grep -e "<i> zf.</i>" -e "<i> zf. " -e "<i> zf.</i>" > /dev/null
	echo $?" "$line;
	sleep 2
done