Subversion Repositories ALCASAR

Rev

Rev 3100 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3100 Rev 3190
Line 37... Line 37...
37
	# Retrieve max Top Level Domain for domain name synthax
37
	# Retrieve max Top Level Domain for domain name synthax
38
	#MAX_TLD=$(curl http://data.iana.org/TLD/tlds-alpha-by-domain.txt | grep -v '-' | grep -v '#' | wc -L)
38
	#MAX_TLD=$(curl http://data.iana.org/TLD/tlds-alpha-by-domain.txt | grep -v '-' | grep -v '#' | wc -L)
39
	#if [ $(echo $MAX_TLD | wc -c) -eq 0 ];then
39
	#if [ $(echo $MAX_TLD | wc -c) -eq 0 ];then
40
	#	MAX_TLD=18
40
	#	MAX_TLD=18
41
	#fi
41
	#fi
42
	# search for correction	egrep "([a-zA-Z0-9_-.]+\.){1,2}[a-zA-Z]{2,$MAX_TLD}" $ossi_custom_dir/domains > $FILE_tmp
42
	# search for correction	grep -E "([a-zA-Z0-9_-.]+\.){1,2}[a-zA-Z]{2,$MAX_TLD}" $ossi_custom_dir/domains > $FILE_tmp
43
}
43
}
44
 
44
 
45
usage="Usage: alcasar-bl-autoupdate.sh { -update_cat or --update_cat | -update_ossi-bl-candc or --update_ossi-bl-candc }"
45
usage="Usage: alcasar-bl-autoupdate.sh { -update_cat or --update_cat | -update_ossi-bl-candc or --update_ossi-bl-candc }"
46
nb_args=$#
46
nb_args=$#
47
args=$1
47
args=$1