File: mkpubsuffixcc

package info (click to toggle)
pdns-recursor 4.1.11-1+deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,936 kB
  • sloc: cpp: 54,211; javascript: 26,587; sh: 11,872; makefile: 453; xml: 37
file content (8 lines) | stat: -rwxr-xr-x 189 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/sh

(echo "const char* g_pubsuffix[]={"; 
	for a in $(grep -v "//" effective_tld_names.dat  | grep \\. | egrep "^[.0-9a-z-]*$")
	do 
		echo \"$a\",
	done 
echo "0};") > pubsuffix.cc