#! /bin/bash awk -F, '$17=="udp" && $22==53 { print $20 }' logs.txt \ | sort | uniq -c | sort -rn