dev: Rename tools directory to scripts (#5035)

This commit is contained in:
pajlada
2023-12-17 13:37:30 +01:00
committed by GitHub
parent aa11a24163
commit 5dd8c1c88a
10 changed files with 5 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
#Download the official list of active TLDs from IANA
#Remove the first line that contains data not needed.
#Put everything that can be into lowercase.
#Output the result to a file.
curl -s 'https://data.iana.org/TLD/tlds-alpha-by-domain.txt' | sed -e '1d' -e 's/\(.*\)/\L\1/' > tlds.txt
#Get the TLDs in punycode format.
#Convert the punycode to Unicode.
#Append the results to the current file.
sed -n -e '/^xn--/p' tlds.txt | idn2 -d >> tlds.txt
mv tlds.txt ../resources/tlds.txt