executable_nginx-server-name 249 B

12345678
  1. #!/usr/bin/env -S awk -f
  2. # Return server_name list from /etc/nginx/sites-available/SITE.
  3. BEGIN { PROCINFO["sorted_in"]="@val_num_asc" }
  4. /server/ && (/\.intr/ || /\.ru/) { gsub(";", ""); domains[$2]++ }
  5. END { for (domain in domains) print domain }