1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: dnstracesort.sh: don't use deprecated "+number" sort(1) option
dnstracesort contained the line "sort -t: +0 -2 +4 +3 -4 +2 -3" which
uses the deprecated sort field selection. This commit changes the
options to "-k": "sort -t: -k 1,3 -k 5 -k 4,5 -k 3,4".
Author: Shai Rosenfeld <shaiguitar@gmail.com>
Date: Wed, 30 Sep 2009 18:50:32 +0000
Last-Update: 2020-07-26
diff --git a/dnstracesort.sh b/dnstracesort.sh
index e57359c..108ef2f 100644
--- a/dnstracesort.sh
+++ b/dnstracesort.sh
@@ -12,7 +12,7 @@ awk -F: '
}
print
}
-' | sort -t: +0 -2 +4 +3 -4 +2 -3 | uniq | awk -F: '
+' | sort -t: -k 1,3 -k 5 -k 4,5 -k 3,4 | uniq | awk -F: '
{
type = $1
q = $2
|