cleanbrowsing/dnsperftest

Change sort by fastest example

Deepcuts opened this issue · 0 comments

Adding any extra DNS servers will break the example sort command:
$ bash ./dnstest.sh |sort -k 22 -n

A cleaner way would be to sort by the last column automatically:
$ bash ./dnstest.sh | awk '{ print $NF,$0 }' | sort -k1,1 -n | cut -f2- -d' '