#!/bin/bash

groovix-filter-parse-connection-log
echo
echo "# Here is the list reduced to two domain levels (also available in /tmp/groovix-filter-parse-connection-log.reduced.txt )"
echo
rm -f /tmp/groovix-filter-parse-connection-log.reduced.txt
cat /tmp/groovix-filter-parse-connection-log.sorted.txt |  perl -ni -e 'print "$1.$2" if /([^\.]+)\.([^\.]+)$/' | sort | uniq > /tmp/groovix-filter-parse-connection-log.reduced.txt

cat /tmp/groovix-filter-parse-connection-log.reduced.txt
