#!/bin/zsh join -t '' -j 2 prefix-list.txt dns-list.txt | sort -u > domain-list-n.txt tr < domain-list-n.txt -d '\000' > domain-list.txt rm domain-list-n.txt